[GRASS-SVN] r32962 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 21 06:32:25 EDT 2008
Author: martinl
Date: 2008-08-21 06:32:24 -0400 (Thu, 21 Aug 2008)
New Revision: 32962
Modified:
grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: fix 'add layer' checkbox
(merge from devbr6, r32961)
Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py 2008-08-21 10:30:43 UTC (rev 32961)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py 2008-08-21 10:32:24 UTC (rev 32962)
@@ -106,7 +106,7 @@
# initialize variables
self.Map = None
- self.parent = parent # GMFrame
+ self.parent = parent # GMFrame | CmdPanel
self.lineWidth = 80
self.pageid = pageid
# remember position of line begining (used for '\r')
@@ -489,7 +489,7 @@
# add layer into layer tree
cmd = dialog.notebookpanel.createCmd(ignoreErrors = True)
name = utils.GetLayerNameFromCmd(cmd, fullyQualified=True, param='output')
- mapTree = self.parent.parent.parent.parent.curr_page.maptree
+ mapTree = self.parent.parent.parent.curr_page.maptree
if dialog.outputType == 'raster':
lcmd = ['d.rast',
'map=%s' % name]
More information about the grass-commit
mailing list