]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagbmp.cpp
Take into account icon mask in wxStaticBitmap
[wxWidgets.git] / src / common / imagbmp.cpp
index 40520c59b9e8cb231a36a57e985a38ff29712a04..71b32dcaefbe7649dd6bac4d5108b77b6b8d9555 100644 (file)
@@ -750,7 +750,7 @@ bool wxBMPHandler::DoLoadDib(wxImage * image, int width, int height,
 
      image->SetMask(FALSE);
 
-    return stream.IsOk();
+    return ( stream.LastError() == wxSTREAM_NO_ERROR || stream.LastError() == wxSTREAM_EOF );
 }
 
 bool wxBMPHandler::LoadDib(wxImage *image, wxInputStream& stream,