[GRASS-SVN] r70305 - grass/branches/releasebranch_7_2/gui/wxpython/mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 8 06:46:12 PST 2017


Author: martinl
Date: 2017-01-08 06:46:12 -0800 (Sun, 08 Jan 2017)
New Revision: 70305

Modified:
   grass/branches/releasebranch_7_2/gui/wxpython/mapdisp/statusbar.py
Log:
wxGUI: do not re-render whole map composition when show/hide comp. region extent (merge r70304 from trunk)

Modified: grass/branches/releasebranch_7_2/gui/wxpython/mapdisp/statusbar.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/wxpython/mapdisp/statusbar.py	2017-01-08 14:42:20 UTC (rev 70304)
+++ grass/branches/releasebranch_7_2/gui/wxpython/mapdisp/statusbar.py	2017-01-08 14:46:12 UTC (rev 70305)
@@ -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