Przeglądaj źródła

wxGUI: fix 'add layer' checkbox
(merge from devbr6, https://trac.osgeo.org/grass/changeset/32961)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32962 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 lat temu
rodzic
commit
af5f1c69f0
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      gui/wxpython/gui_modules/goutput.py

+ 2 - 2
gui/wxpython/gui_modules/goutput.py

@@ -106,7 +106,7 @@ class GMConsole(wx.Panel):
 
         # 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 @@ class GMConsole(wx.Panel):
                     # 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]