[GRASS-SVN] r64858 - grass/trunk/gui/wxpython/lmgr

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


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

Modified:
   grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: fix layertree error when switching to different location

Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py	2015-03-14 18:07:08 UTC (rev 64857)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py	2015-03-14 19:12:38 UTC (rev 64858)
@@ -1726,6 +1726,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