[GRASS-SVN] r35482 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 18 12:27:28 EST 2009


Author: martinl
Date: 2009-01-18 12:27:28 -0500 (Sun, 18 Jan 2009)
New Revision: 35482

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py
Log:
wxGUI: regenerate mapfile

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py	2009-01-18 10:26:26 UTC (rev 35481)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/render.py	2009-01-18 17:27:28 UTC (rev 35482)
@@ -135,9 +135,17 @@
                 gcmd.Command(['d.mon',
                               'start=cairo'], stderr=None)
         else:
+            if not self.mapfile:
+                self.gtemp = tempfile.mkstemp()[1]
+                self.maskfile = self.gtemp + ".pgm"
+                if self.type == 'overlay':
+                    self.mapfile  = self.gtemp + ".png"
+                else:
+                    self.mapfile  = self.gtemp + ".ppm"
+
             if self.mapfile:
                 os.environ["GRASS_PNGFILE"] = self.mapfile
-                
+        
         #
         # execute command
         #



More information about the grass-commit mailing list