[GRASS-SVN] r55989 - grass/branches/releasebranch_6_4/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 24 23:27:52 PDT 2013


Author: annakrat
Date: 2013-04-24 23:27:52 -0700 (Wed, 24 Apr 2013)
New Revision: 55989

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_core/forms.py
Log:
wxGUI: quick fix for #1949

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_core/forms.py	2013-04-25 06:17:41 UTC (rev 55988)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_core/forms.py	2013-04-25 06:27:52 UTC (rev 55989)
@@ -591,7 +591,10 @@
         if self.parent.GetName() ==  'LayerTree':
             display = self.parent.GetMapDisplay()
         else: # Layer Manager
-            display = self.parent.GetLayerTree().GetMapDisplay()
+            display = None
+            tree = self.parent.GetLayerTree()
+            if tree:
+                display = tree.GetMapDisplay()
             
         if not display or not display.IsAutoRendered():
             return



More information about the grass-commit mailing list