Bug #974

When CodeEditor selection drops to zero - it should refresh ide menu bar

Added by Zbigniew Rebacz about 9 years ago. Updated about 9 years ago.

Status:ApprovedStart date:02/01/2015
Priority:HighDue date:
Assignee:Zbigniew Rebacz% Done:

100%

Category:CtrlLibSpent time:-
Target version:-

Description

Bar isn't refresh when selection drops to zero (copy and cut option should be diabsle)

TextEdit.diff Magnifier (956 Bytes) Zbigniew Rebacz, 02/17/2015 12:16 PM

History

#1 Updated by Zbigniew Rebacz about 9 years ago

Sorry Mirek it assigns you by default ;)

#2 Updated by Zbigniew Rebacz about 9 years ago

For person how is using menu in the row this bug doesn’t occur!!!

#3 Updated by Zbigniew Rebacz about 9 years ago

  • Category changed from IDE to CtrlLib

It is deffinitly LineEditProblem. "anchor" is setting in a wrong way.

#4 Updated by Zbigniew Rebacz about 9 years ago

  • Priority changed from Low to Normal

Priority "Normal" due to CtrlLib problem.

#5 Updated by Zbigniew Rebacz about 9 years ago

  • Status changed from New to Patch ready
  • % Done changed from 0 to 80

Catch it!!!

We need to change in function "IsAnySelection" (CtrlLib/TextEdit.h - 152 line) that cursor is different from anchor. Code:

bool    IsAnySelection() const            { return anchor >= 0 && anchor != cursor; }

Should we change two other methods, too?

bool    IsSelection() const               { return IsAnySelection() && !rectsel; }
bool    IsRectSelection() const           { return IsAnySelection() && rectsel; }

#6 Updated by Zbigniew Rebacz about 9 years ago

  • Priority changed from Normal to High

#7 Updated by Zbigniew Rebacz about 9 years ago

#8 Updated by Miroslav Fidler about 9 years ago

  • Status changed from Patch ready to Ready for QA
  • Assignee changed from Miroslav Fidler to Zbigniew Rebacz

#9 Updated by Zbigniew Rebacz about 9 years ago

  • Status changed from Ready for QA to Approved
  • % Done changed from 80 to 100

Also available in: Atom PDF