[GRASS-SVN] r60131 - grass/trunk/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 6 09:22:54 PDT 2014
Author: annakrat
Date: 2014-05-06 09:22:54 -0700 (Tue, 06 May 2014)
New Revision: 60131
Modified:
grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI/lmgr: fix #2279
Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py 2014-05-06 12:48:22 UTC (rev 60130)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py 2014-05-06 16:22:54 UTC (rev 60131)
@@ -1072,7 +1072,6 @@
checked = True
self.forceCheck = True
- wx.CallAfter(self.CheckItem, layer, checked)
# add text and icons for each layer ltype
if ltype == 'command':
@@ -1116,6 +1115,9 @@
'nviz' : lnviz,
'propwin' : None},
None))
+ # must be after SetPyData because it calls OnLayerChecked
+ # which calls GetVisibleLayers which requires already set PyData
+ self.CheckItem(layer, checked=checked)
# find previous map layer instance
prevItem = self.GetFirstChild(self.root)[0]
More information about the grass-commit
mailing list