[GRASS-SVN] r52818 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 21 07:46:44 PDT 2012
Author: annakrat
Date: 2012-08-21 07:46:44 -0700 (Tue, 21 Aug 2012)
New Revision: 52818
Modified:
grass/trunk/gui/wxpython/gui_core/goutput.py
Log:
wxGUI: quick fix for #1565
Modified: grass/trunk/gui/wxpython/gui_core/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/goutput.py 2012-08-21 14:31:40 UTC (rev 52817)
+++ grass/trunk/gui/wxpython/gui_core/goutput.py 2012-08-21 14:46:44 UTC (rev 52818)
@@ -896,7 +896,10 @@
event.cmd[0] == 'r.mapcalc':
return
- display = self.parent.GetLayerTree().GetMapDisplay()
+ tree = self.parent.GetLayerTree()
+ display = None
+ if tree:
+ display = tree.GetMapDisplay()
if not display or not display.IsAutoRendered():
return
mapLayers = map(lambda x: x.GetName(),
More information about the grass-commit
mailing list