[GRASS-SVN] r52223 - in grass/trunk/gui/wxpython: gui_core modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 25 23:59:58 PDT 2012
Author: annakrat
Date: 2012-06-25 23:59:58 -0700 (Mon, 25 Jun 2012)
New Revision: 52223
Modified:
grass/trunk/gui/wxpython/gui_core/prompt.py
grass/trunk/gui/wxpython/modules/histogram.py
Log:
wxGUI: #1679 fixed
Modified: grass/trunk/gui/wxpython/gui_core/prompt.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/prompt.py 2012-06-26 06:39:59 UTC (rev 52222)
+++ grass/trunk/gui/wxpython/gui_core/prompt.py 2012-06-26 06:59:58 UTC (rev 52223)
@@ -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/trunk/gui/wxpython/modules/histogram.py
===================================================================
--- grass/trunk/gui/wxpython/modules/histogram.py 2012-06-26 06:39:59 UTC (rev 52222)
+++ grass/trunk/gui/wxpython/modules/histogram.py 2012-06-26 06:59:58 UTC (rev 52223)
@@ -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