X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c96ea65713a8dd58ae40b10718723b5c92a303e3..9ac71bef070f553f4ecef2c549dba33b10422f06:/src/common/imagpnm.cpp?ds=sidebyside diff --git a/src/common/imagpnm.cpp b/src/common/imagpnm.cpp index d5ca1fae4d..a11007de33 100644 --- a/src/common/imagpnm.cpp +++ b/src/common/imagpnm.cpp @@ -137,8 +137,6 @@ bool wxPNMHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool WXUNUS bool wxPNMHandler::DoCanRead( wxInputStream& stream ) { - off_t pos = stream.TellI(); - Skip_Comment(stream); if ( stream.GetC() == 'P' ) @@ -147,12 +145,10 @@ bool wxPNMHandler::DoCanRead( wxInputStream& stream ) { case '3': case '6': - stream.SeekI(pos); return TRUE; } } - stream.SeekI(pos); return FALSE; }