[GRASS-SVN] r51414 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 13 09:23:24 EDT 2012


Author: annakrat
Date: 2012-04-13 06:23:23 -0700 (Fri, 13 Apr 2012)
New Revision: 51414

Modified:
   grass/trunk/gui/wxpython/gui_core/widgets.py
Log:
wxGUI: quick fix for PyAssertionError in SymbolButton on windows (merge from release branch, r51413)

Modified: grass/trunk/gui/wxpython/gui_core/widgets.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/widgets.py	2012-04-13 13:17:29 UTC (rev 51413)
+++ grass/trunk/gui/wxpython/gui_core/widgets.py	2012-04-13 13:23:23 UTC (rev 51414)
@@ -26,6 +26,7 @@
 """
 
 import os
+import sys
 import string
 
 import wx
@@ -195,7 +196,8 @@
         elif usage == 'pause':
             self.DrawPause(dc, size)
 
-        buffer.SetMaskColour(maskColor)
+        if sys.platform != "win32":
+            buffer.SetMaskColour(maskColor)
         self.SetBitmapLabel(buffer)
         dc.SelectObject(wx.NullBitmap)
         



More information about the grass-commit mailing list