projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
forgot to commit during last regeneration
[wxWidgets.git]
/
wxPython
/
wx
/
lib
/
statbmp.py
diff --git
a/wxPython/wx/lib/statbmp.py
b/wxPython/wx/lib/statbmp.py
index 54dd9cc6963036c1053f13bd51cc488daa266254..bd4ab445145a3e51868d2aa642414a13fa130100 100644
(file)
--- a/
wxPython/wx/lib/statbmp.py
+++ b/
wxPython/wx/lib/statbmp.py
@@
-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):