浏览代码

wxGUI: fix rendering issue reported in https://trac.osgeo.org/grass/ticket/2088

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58939 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父节点
当前提交
73b1b88598
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/lmgr/layertree.py

+ 1 - 1
gui/wxpython/lmgr/layertree.py

@@ -1100,7 +1100,7 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
             checked = True
             checked = True
         
         
         self.forceCheck = True
         self.forceCheck = True
-        self.CheckItem(layer, checked = checked)
+        wx.CallAfter(self.CheckItem, layer, checked)
         
         
         # add text and icons for each layer ltype
         # add text and icons for each layer ltype
         label =  _('(double click to set properties)') + ' ' * 15
         label =  _('(double click to set properties)') + ' ' * 15