cmGrPlot.c : Fixed an apparent bug in cmGrPlotObjSetStateFlags() where _cmGrPlotObjSetFocus() was only called if the focus flag was already set when it appears it should only called when it is not already set.
This commit is contained in:
parent
555ac64cce
commit
ceb627d04d
@ -1069,7 +1069,7 @@ void cmGrPlotObjSetStateFlags( cmGrPlObjH_t oh, unsigned flags )
|
||||
_cmGrPlotObjSetSelect(op, !fl );
|
||||
|
||||
if( cmIsFlag(flags,kFocusGrPlFl) != (fl=_cmGrPlotObjIsFocused(op)) )
|
||||
if( fl )
|
||||
if( !fl )
|
||||
_cmGrPlotObjSetFocus(op);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user