projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7adabb9
)
Don't try drawing the bitmap before it's valid
author
Julian Smart
<julian@anthemion.co.uk>
Tue, 23 Aug 2005 07:46:30 +0000
(07:46 +0000)
committer
Julian Smart
<julian@anthemion.co.uk>
Tue, 23 Aug 2005 07:46:30 +0000
(07:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35279
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/mac/carbon/statbmp.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/mac/carbon/statbmp.cpp
b/src/mac/carbon/statbmp.cpp
index 9a13660d97dfaa731fe787c786103706f76506f3..3cb137e00f4aab96f32545126bbdeb41067e3a9b 100644
(file)
--- a/
src/mac/carbon/statbmp.cpp
+++ b/
src/mac/carbon/statbmp.cpp
@@
-69,7
+69,10
@@
void wxStaticBitmap::OnPaint( wxPaintEvent& WXUNUSED(event) )
wxPaintDC dc(this);
PrepareDC(dc);
wxPaintDC dc(this);
PrepareDC(dc);
- dc.DrawBitmap( m_bitmap , 0 , 0 , TRUE ) ;
+ if (m_bitmap.Ok())
+ {
+ dc.DrawBitmap( m_bitmap , 0 , 0 , TRUE ) ;
+ }
}
wxSize wxStaticBitmap::DoGetBestSize() const
}
wxSize wxStaticBitmap::DoGetBestSize() const