]> git.saurik.com Git - wxWidgets.git/commitdiff
fix another icon error
authorChris Elliott <biol75@york.ac.uk>
Tue, 2 Jul 2002 13:25:44 +0000 (13:25 +0000)
committerChris Elliott <biol75@york.ac.uk>
Tue, 2 Jul 2002 13:25:44 +0000 (13:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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,