]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/xpmdecod.cpp
fixed bug in baserpm.t and regenerated
[wxWidgets.git] / src / common / xpmdecod.cpp
index 2952344fb39960fb88ef766368f644198142800e..90674a7e5107e4b41141f7a1834f8281ea32f665 100644 (file)
@@ -136,7 +136,7 @@ wxImage wxXPMDecoder::ReadFile(wxInputStream& stream)
     char *p, *q;
     size_t i;
 
-    if ( stream.Read(xpm_buffer, length).LastError() != wxSTREAM_NO_ERROR )
+    if ( stream.Read(xpm_buffer, length).LastError() == wxSTREAM_READ_ERROR )
         return FALSE;
 
     /*