From: Chris Elliott Date: Tue, 2 Jul 2002 13:25:44 +0000 (+0000) Subject: fix another icon error X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5f4403b40758a3d7aac92df818927c145a07903c?ds=sidebyside fix another icon error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/imagbmp.cpp b/src/common/imagbmp.cpp index 40520c59b9..71b32dcaef 100644 --- a/src/common/imagbmp.cpp +++ b/src/common/imagbmp.cpp @@ -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,