Ok() should be called on image, not bitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -391,7 +391,7 @@ bool wxBitmap::CreateFromImage( const wxImage& image, int depth )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set bitmap parameters
|
// set bitmap parameters
|
||||||
wxCHECK_MSG( Ok(), FALSE, wxT("invalid image") );
|
wxCHECK_MSG( image.Ok(), FALSE, wxT("invalid image") );
|
||||||
SetWidth( width );
|
SetWidth( width );
|
||||||
SetHeight( bmpHeight );
|
SetHeight( bmpHeight );
|
||||||
if (depth == -1) depth = wxDisplayDepth();
|
if (depth == -1) depth = wxDisplayDepth();
|
||||||
|
Reference in New Issue
Block a user