X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c96ea65713a8dd58ae40b10718723b5c92a303e3..7af68c666bda771e37812ca37f0c6cc1741fa3ec:/src/common/imagpnm.cpp 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; }