]> git.saurik.com Git - wxWidgets.git/commitdiff
Ok() should be called on image, not bitmap
authorJulian Smart <julian@anthemion.co.uk>
Tue, 10 Apr 2001 12:44:48 +0000 (12:44 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 10 Apr 2001 12:44:48 +0000 (12:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/bitmap.cpp

index 00dfae1667e700a90bc10a1ab31cc365c1f1950b..6bc9f47356b02b734d04c35d93629f2d9d83ee4b 100644 (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();