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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 16 21:44:43 EDT 2008


Author: cmbarton
Date: 2008-08-16 21:44:43 -0400 (Sat, 16 Aug 2008)
New Revision: 32830

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
   grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py
Log:
Backported from trunk. Fix for rendering bug TRAC #259.

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2008-08-17 01:38:11 UTC (rev 32829)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2008-08-17 01:44:43 UTC (rev 32830)
@@ -644,6 +644,9 @@
         # render background image if needed
         #
         if render:
+            # walk layer tree and update current layers
+            self.tree.ReorderLayers()
+            # update display size
             self.Map.ChangeMapSize(self.GetClientSize())
             windres = False
             if self.parent.compResolution.GetValue():

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py	2008-08-17 01:38:11 UTC (rev 32829)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py	2008-08-17 01:44:43 UTC (rev 32830)
@@ -1197,7 +1197,7 @@
 
         vislayer = self.GetFirstVisibleItem()
 
-        if not vislayer:
+        if not vislayer or self.GetPyData(vislayer) is None:
             return
 
         itemList = ""



More information about the grass-commit mailing list