]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagpnm.cpp
Compile fix for prop.
[wxWidgets.git] / src / common / imagpnm.cpp
index d5ca1fae4ddfa7a2e6075188680dd9fb297a9a7e..a11007de33c94d4f177031c3705b2107d3c3c36e 100644 (file)
@@ -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;
 }