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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 5 10:12:16 EDT 2011


Author: martinl
Date: 2011-07-05 07:12:16 -0700 (Tue, 05 Jul 2011)
New Revision: 47002

Modified:
   grass/trunk/gui/wxpython/gui_modules/render.py
Log:
wxGUI: don't define GRASS_TRANSPARENT for standalone app


Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py	2011-07-05 14:00:43 UTC (rev 47001)
+++ grass/trunk/gui/wxpython/gui_modules/render.py	2011-07-05 14:12:16 UTC (rev 47002)
@@ -372,8 +372,7 @@
         self._initGisEnv() # g.gisenv
         self.GetWindow()
         # GRASS environment variable (for rendering)
-        env = {"GRASS_TRANSPARENT"     : "TRUE",
-               "GRASS_BACKGROUNDCOLOR" : "FFFFFF",
+        env = {"GRASS_BACKGROUNDCOLOR" : "FFFFFF",
                # "GRASS_PNG_AUTO_WRITE"  : "TRUE",
                "GRASS_COMPRESSION"     : "0",
                "GRASS_TRUECOLOR"       : "TRUE" }
@@ -381,6 +380,7 @@
             env["GRASS_PNG_READ"] = "TRUE"
         else:
             env["GRASS_PNG_READ"] = "FALSE"
+            env["GRASS_TRANSPARENT"] = "TRUE"
         
         self._writeEnvFile(env)
         for k, v in env.iteritems():



More information about the grass-commit mailing list