Browse Source

wxGUI/startup: initialize picture to black when it fails to display

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57088 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 years ago
parent
commit
5b5b87e44e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/gis_set.py

+ 1 - 1
gui/wxpython/gis_set.py

@@ -94,7 +94,7 @@ class GRASSStartup(wx.Frame):
                                            wx.Bitmap(name = name,
                                                      type = wx.BITMAP_TYPE_PNG))
         except:
-            self.hbitmap = wx.StaticBitmap(self.panel, wx.ID_ANY, wx.EmptyBitmap(530,150))
+            self.hbitmap = wx.StaticBitmap(self.panel, wx.ID_ANY, wx.BitmapFromImage(wx.EmptyImage(530,150)))
 
         # labels
         ### crashes when LOCATION doesn't exist