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:
kevin 2016-05-23 18:39:00 -04:00
parent 555ac64cce
commit ceb627d04d

View File

@ -1069,7 +1069,7 @@ void cmGrPlotObjSetStateFlags( cmGrPlObjH_t oh, unsigned flags )
_cmGrPlotObjSetSelect(op, !fl ); _cmGrPlotObjSetSelect(op, !fl );
if( cmIsFlag(flags,kFocusGrPlFl) != (fl=_cmGrPlotObjIsFocused(op)) ) if( cmIsFlag(flags,kFocusGrPlFl) != (fl=_cmGrPlotObjIsFocused(op)) )
if( fl ) if( !fl )
_cmGrPlotObjSetFocus(op); _cmGrPlotObjSetFocus(op);
} }