[GRASS-SVN] r64859 - grass/branches/releasebranch_7_0/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 14 12:14:26 PDT 2015


Author: annakrat
Date: 2015-03-14 12:14:26 -0700 (Sat, 14 Mar 2015)
New Revision: 64859

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: fix layertree error when switching to different location (merge from trunk, r64858)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py	2015-03-14 19:12:38 UTC (rev 64858)
+++ grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py	2015-03-14 19:14:26 UTC (rev 64859)
@@ -1715,6 +1715,8 @@
     def GetVisibleLayers(self, skipDigitized=False):
         # make a list of visible layers
         layers = []
+        if self.root is None:
+            return layers
 
         vislayer = self.GetFirstChild(self.root)[0]
 



More information about the grass-commit mailing list