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:
Julian Smart
2001-04-10 12:44:48 +00:00
parent 1454d4e659
commit c447ce1745

View File

@@ -391,7 +391,7 @@ bool wxBitmap::CreateFromImage( const wxImage& image, int depth )
}
// set bitmap parameters
wxCHECK_MSG( Ok(), FALSE, wxT("invalid image") );
wxCHECK_MSG( image.Ok(), FALSE, wxT("invalid image") );
SetWidth( width );
SetHeight( bmpHeight );
if (depth == -1) depth = wxDisplayDepth();