[GRASS-SVN] r60145 - grass/branches/releasebranch_7_0/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 7 05:23:23 PDT 2014
Author: annakrat
Date: 2014-05-07 05:23:23 -0700 (Wed, 07 May 2014)
New Revision: 60145
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py
Log:
wxGUI/lmgr: fix #2279 (merged from trunk, r60131)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py 2014-05-07 08:16:45 UTC (rev 60144)
+++ grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py 2014-05-07 12:23:23 UTC (rev 60145)
@@ -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