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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 6 06:06:14 EDT 2008


Author: martinl
Date: 2008-09-06 06:06:14 -0400 (Sat, 06 Sep 2008)
New Revision: 33287

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
Log:
wxGUI: check GRASS_PNGFILE first


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2008-09-06 09:58:22 UTC (rev 33286)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2008-09-06 10:06:14 UTC (rev 33287)
@@ -185,7 +185,7 @@
             gcmd.Command(['d.mon',
                           'stop=cairo'], stderr=None)
             del os.environ["GRASS_CAIROFILE"]
-        else:
+        elif os.environ.has_key("GRASS_PNGFILE")
             del os.environ["GRASS_PNGFILE"]
         
         self.force_render = False



More information about the grass-commit mailing list