diff --git a/cmGrPlot.c b/cmGrPlot.c index b32164d..eef9ff9 100644 --- a/cmGrPlot.c +++ b/cmGrPlot.c @@ -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); }