the bitmap is not okay return wxNullImage (instead of a dummy 5x5 image)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25409
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxImage wxBitmap::ConvertToImage() const
{
wxImage wxBitmap::ConvertToImage() const
{
- if(!M_BITMAPDATA->m_ok)
- return wxImage(5,5)/*wxNullImage*/;
+ if(!Ok())
+ return /*wxImage(5,5)*/wxNullImage;
return wxImage(M_BITMAPDATA->m_width,M_BITMAPDATA->m_height);
}
return wxImage(M_BITMAPDATA->m_width,M_BITMAPDATA->m_height);
}