瀏覽代碼

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 年之前
父節點
當前提交
ceb627d04d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      cmGrPlot.c

+ 1
- 1
cmGrPlot.c 查看文件

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

Loading…
取消
儲存