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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 6 02:31:46 EDT 2011


Author: annakrat
Date: 2011-10-05 23:31:45 -0700 (Wed, 05 Oct 2011)
New Revision: 48656

Modified:
   grass/trunk/gui/wxpython/gui_modules/wxnviz.py
Log:
wxNviz: fix initializing alpha in texture

Modified: grass/trunk/gui/wxpython/gui_modules/wxnviz.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxnviz.py	2011-10-05 22:38:31 UTC (rev 48655)
+++ grass/trunk/gui/wxpython/gui_modules/wxnviz.py	2011-10-06 06:31:45 UTC (rev 48656)
@@ -1883,7 +1883,8 @@
         self.textDict = textDict
         
         # alpha needs to be initialized
-        self.image.InitAlpha()
+        if not self.image.HasAlpha():
+            self.image.InitAlpha()
     
         # resize image to match 2^n
         self.Resize()



More information about the grass-commit mailing list