[GRASS-SVN] r57987 - grass/trunk/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Oct 13 12:57:58 PDT 2013
Author: martinl
Date: 2013-10-13 12:57:58 -0700 (Sun, 13 Oct 2013)
New Revision: 57987
Modified:
grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: re-render display when computational region set from selected maps
Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py 2013-10-13 19:48:54 UTC (rev 57986)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py 2013-10-13 19:57:58 UTC (rev 57987)
@@ -6,7 +6,7 @@
Classes:
- layertree::LayerTree
-(C) 2007-2011 by the GRASS Development Team
+(C) 2007-2013 by the GRASS Development Team
This program is free software under the GNU General Public License
(>=v2). Read the file COPYING that comes with GRASS for details.
@@ -623,6 +623,9 @@
# print output to command log area
self._giface.RunCmd(cmd)
+
+ # re-render map display
+ self._giface.GetMapWindow().UpdateMap(render=True)
def OnSetCompRegFromMap(self, event):
"""!Set computational region from selected raster/vector map
@@ -658,7 +661,10 @@
if mltype == '3d-raster':
cmd.append('-3')
self._giface.RunCmd(cmd, compReg = False)
-
+
+ # re-render map display
+ self._giface.GetMapWindow().UpdateMap(render=True)
+
def OnProfile(self, event):
"""!Plot profile of given raster map layer"""
mapLayer = self.GetLayerInfo(self.layer_selected, key = 'maplayer')
More information about the grass-commit
mailing list