Browse Source

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.

master
kevin 8 years ago
parent
commit
ceb627d04d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cmGrPlot.c

+ 1
- 1
cmGrPlot.c View File

1069
     _cmGrPlotObjSetSelect(op, !fl );
1069
     _cmGrPlotObjSetSelect(op, !fl );
1070
 
1070
 
1071
   if( cmIsFlag(flags,kFocusGrPlFl) != (fl=_cmGrPlotObjIsFocused(op)) )
1071
   if( cmIsFlag(flags,kFocusGrPlFl) != (fl=_cmGrPlotObjIsFocused(op)) )
1072
-    if( fl )
1072
+    if( !fl )
1073
       _cmGrPlotObjSetFocus(op);
1073
       _cmGrPlotObjSetFocus(op);
1074
   
1074
   
1075
 }
1075
 }

Loading…
Cancel
Save