[GRASS-SVN] r52224 - in grass/branches/releasebranch_6_4/gui/wxpython: gui_core modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 26 00:10:11 PDT 2012


Author: annakrat
Date: 2012-06-26 00:10:11 -0700 (Tue, 26 Jun 2012)
New Revision: 52224

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_core/prompt.py
   grass/branches/releasebranch_6_4/gui/wxpython/modules/histogram.py
Log:
wxGUI: #1679 fixed (merge from trunk, r52223)

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_core/prompt.py	2012-06-26 06:59:58 UTC (rev 52223)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_core/prompt.py	2012-06-26 07:10:11 UTC (rev 52224)
@@ -604,8 +604,8 @@
         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
 

Modified: grass/branches/releasebranch_6_4/gui/wxpython/modules/histogram.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/modules/histogram.py	2012-06-26 06:59:58 UTC (rev 52223)
+++ grass/branches/releasebranch_6_4/gui/wxpython/modules/histogram.py	2012-06-26 07:10:11 UTC (rev 52224)
@@ -284,7 +284,7 @@
 
         # 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':



More information about the grass-commit mailing list