[GRASS-SVN] r32894 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 19 11:12:37 EDT 2008


Author: cmbarton
Date: 2008-08-19 11:12:36 -0400 (Tue, 19 Aug 2008)
New Revision: 32894

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
Log:
Fine tuning layer management and auto-render for better panning and resizing.

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2008-08-19 14:15:12 UTC (rev 32893)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2008-08-19 15:12:36 UTC (rev 32894)
@@ -642,8 +642,13 @@
         # render background image if needed
         #
         
-        if self.tree.rerender == True:
+        # update layer dictionary if there has been a change in layers
+        if self.tree.reorder == True:
             self.tree.ReorderLayers()
+            
+        # reset flag for auto-rendering
+        self.tree.rerender = False
+            
         if render:
             # update display size
             self.Map.ChangeMapSize(self.GetClientSize())



More information about the grass-commit mailing list