[GRASS-SVN] r32961 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 21 06:30:43 EDT 2008


Author: martinl
Date: 2008-08-21 06:30:43 -0400 (Thu, 21 Aug 2008)
New Revision: 32961

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: fix 'add layer' checkbox

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py	2008-08-21 09:51:22 UTC (rev 32960)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py	2008-08-21 10:30:43 UTC (rev 32961)
@@ -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