[GRASS-SVN] r33043 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 23 19:20:56 EDT 2008


Author: martinl
Date: 2008-08-23 19:20:56 -0400 (Sat, 23 Aug 2008)
New Revision: 33043

Modified:
   grass/trunk/gui/wxpython/gui_modules/render.py
Log:
wxGUI: update r33041, remove dead code (merge from devb6, r33042)


Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py	2008-08-23 23:19:33 UTC (rev 33042)
+++ grass/trunk/gui/wxpython/gui_modules/render.py	2008-08-23 23:20:56 UTC (rev 33043)
@@ -830,8 +830,6 @@
                 
             Debug.msg (3, "Map.Render() type=%s, layer=%s " % (layer.type, layer.name))
             ilayer += 1
-
-        return True
     
     def Render(self, force=False, mapWindow=None, windres=False):
         """
@@ -868,10 +866,8 @@
             os.environ["GRASS_TRUECOLOR"] = "TRUE"
             os.environ["GRASS_RENDER_IMMEDIATE"] = "TRUE"
         
-        if not self._renderLayers(force, mapWindow, maps, masks, opacities):
-            os.environ["GRASS_REGION"] = self.SetRegion(windres)
-            self._renderLayers(True, False, mapWindow, maps, masks, opacities)
-        
+        self._renderLayers(force, mapWindow, maps, masks, opacities)
+            
         # ugly hack for MSYS
         if not subprocess.mswindows:
             mapstr = ",".join(maps)



More information about the grass-commit mailing list