瀏覽代碼

wxGUI: https://trac.osgeo.org/grass/ticket/1679 fixed

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52223 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 年之前
父節點
當前提交
7ec5eeadbd
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      gui/wxpython/gui_core/prompt.py
  2. 1 1
      gui/wxpython/modules/histogram.py

+ 2 - 2
gui/wxpython/gui_core/prompt.py

@@ -604,8 +604,8 @@ class GPrompt(object):
         if not cmdString or self.standAlone:
             return
         
-        if cmdString[:2] == 'd.' and not self.parent.curr_page:
-            self.parent.NewDisplay(show = True)
+        if cmdString[:2] == 'd.' and not self.parent.parent.curr_page:
+            self.parent.parent.NewDisplay(show = True)
                 
         self.commands.append(cmdString) # trace commands
 

+ 1 - 1
gui/wxpython/modules/histogram.py

@@ -284,7 +284,7 @@ class HistogramFrame(wx.Frame):
 
         # find selected map
         self.mapname = None
-        if not parent.IsStandalone():
+        if parent.GetName() == "MapWindow" and not parent.IsStandalone():
             tree = parent.GetLayerManager().GetLayerTree()
 
             if tree.layer_selected and tree.GetPyData(tree.layer_selected)[0]['type'] == 'raster':