Don't try drawing the bitmap before it's valid

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-08-23 07:46:30 +00:00
parent 7adabb9ae8
commit 45aee08b3b

View File

@@ -69,7 +69,10 @@ void wxStaticBitmap::OnPaint( wxPaintEvent& WXUNUSED(event) )
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