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:
@@ -69,7 +69,10 @@ void wxStaticBitmap::OnPaint( wxPaintEvent& WXUNUSED(event) )
|
|||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
PrepareDC(dc);
|
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
|
||||||
|
Reference in New Issue
Block a user