]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/xpmdecod.cpp
fixing modal dialog quit after nested message box problem
[wxWidgets.git] / src / common / xpmdecod.cpp
index 8d38a3132ef1ebb4bcbfca7c9b24d892fadd3ae4..82a415f69624fe8f7d7efe9663860b40d6afbc9b 100644 (file)
@@ -122,8 +122,6 @@ bool wxXPMDecoder::CanRead(wxInputStream& stream)
     if ( !stream.Read(buf, WXSIZEOF(buf)) )
         return false;
 
     if ( !stream.Read(buf, WXSIZEOF(buf)) )
         return false;
 
-    stream.SeekI(-(wxFileOffset)WXSIZEOF(buf), wxFromCurrent);
-
     return memcmp(buf, "/* XPM */", WXSIZEOF(buf)) == 0;
 }
 
     return memcmp(buf, "/* XPM */", WXSIZEOF(buf)) == 0;
 }