X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..5fc7ede910768d418a0b436e0046300712304d3b:/src/msw/statbmp.cpp?ds=sidebyside diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index e9ceb4890b..da32aead68 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -185,7 +185,9 @@ bool wxStaticBitmap::MSWOnDraw(WXDRAWITEMSTRUCT *item) { LPDRAWITEMSTRUCT lpDIS = (LPDRAWITEMSTRUCT) item; - wxBitmap* bitmap = m_image.bitmap; + wxCHECK_MSG( !m_isIcon, FALSE, _T("icons not supported in wxStaticBitmap") ); + + wxBitmap* bitmap = (wxBitmap *)m_image; if ( !bitmap->Ok() ) return FALSE;