X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f49300284e2c91095ae3ebe62cb3a6d424eac21..7af68c666bda771e37812ca37f0c6cc1741fa3ec:/src/common/imagpnm.cpp diff --git a/src/common/imagpnm.cpp b/src/common/imagpnm.cpp index 3646d49e82..a11007de33 100644 --- a/src/common/imagpnm.cpp +++ b/src/common/imagpnm.cpp @@ -22,7 +22,7 @@ # include "wx/setup.h" #endif -#if wxUSE_PNM +#if wxUSE_IMAGE && wxUSE_PNM #include "wx/imagpnm.h" #include "wx/log.h" @@ -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; }