]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/statbmp.py
compilation fix after removing wxImage(wxImage *) ctor
[wxWidgets.git] / wxPython / wx / lib / statbmp.py
index 54dd9cc6963036c1053f13bd51cc488daa266254..bd4ab445145a3e51868d2aa642414a13fa130100 100644 (file)
@@ -74,7 +74,8 @@ class GenStaticBitmap(wx.PyControl):
 
     def OnPaint(self, event):
         dc = wx.PaintDC(self)
-        dc.DrawBitmap(self._bitmap, 0, 0, True)
+        if self._bitmap:
+            dc.DrawBitmap(self._bitmap, 0, 0, True)
         
 
     def OnEraseBackground(self, event):