[GRASS-SVN] r70304 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 8 06:42:20 PST 2017
Author: martinl
Date: 2017-01-08 06:42:20 -0800 (Sun, 08 Jan 2017)
New Revision: 70304
Modified:
grass/trunk/gui/wxpython/mapdisp/statusbar.py
Log:
wxGUI: do not re-render whole map composition when show/hide comp. region extent
Modified: grass/trunk/gui/wxpython/mapdisp/statusbar.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/statusbar.py 2017-01-08 14:16:52 UTC (rev 70303)
+++ grass/trunk/gui/wxpython/mapdisp/statusbar.py 2017-01-08 14:42:20 UTC (rev 70304)
@@ -303,7 +303,7 @@
self.statusbarItems['region'].SetValue(True)
# redraw map if auto-rendering is enabled
if self.mapFrame.IsAutoRendered():
- self.mapFrame.OnRender(None)
+ self.mapFrame.GetMapWindow().UpdateMap(render=False)
def SetMode(self, modeIndex):
"""Sets current mode
@@ -493,7 +493,7 @@
# redraw map if auto-rendering is enabled
if self.mapFrame.IsAutoRendered():
- self.mapFrame.OnRender(None)
+ self.mapFrame.GetMapWindow().UpdateMap(render=False)
def SetValue(self, value):
self._disconnectShowRegion()
@@ -591,7 +591,7 @@
self._connectResolutionChange()
# redraw map if auto-rendering is enabled
if self.mapFrame.IsAutoRendered():
- self.mapFrame.OnRender(None)
+ self.mapFrame.GetMapWindow().UpdateMap()
class SbMapScale(SbItem):
More information about the grass-commit
mailing list