// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "statbmp.h"
-#endif
-
#include "wx/wxprec.h"
#if wxUSE_STATBMP
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