Should return wxImage not bool
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -317,7 +317,7 @@ wxBitmap::wxBitmap(const wxImage& image, int depth)
|
|||||||
|
|
||||||
wxImage wxBitmap::ConvertToImage() const
|
wxImage wxBitmap::ConvertToImage() const
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( Ok(), FALSE, wxT("invalid bitmap") );
|
wxCHECK_MSG( Ok(), wxImage(), wxT("invalid bitmap") );
|
||||||
|
|
||||||
int width, height;
|
int width, height;
|
||||||
width = GetWidth();
|
width = GetWidth();
|
||||||
|
Reference in New Issue
Block a user