Explorar o código

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á %!s(int64=12) %!d(string=hai) anos
pai
achega
5b5b87e44e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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