From ceb627d04d6a5ce110d777d7c2fbf84b06c4ac5b Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 23 May 2016 18:39:00 -0400 Subject: [PATCH] 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. --- cmGrPlot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }