]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagtga.cpp
#11259: Correction for bad help button on OSX
[wxWidgets.git] / src / common / imagtga.cpp
index 9fd65003a77f746bde9e7c32670edfb26c04537a..62080d22c1f5490cb0d852ce9f6bf3e35f08ebcb 100644 (file)
@@ -669,7 +669,9 @@ bool wxTGAHandler::LoadFile(wxImage* image,
     if ( !CanRead(stream) )
     {
         if ( verbose )
+        {
             wxLogError(wxT("TGA: this is not a TGA file."));
+        }
 
         return false;
     }
@@ -741,7 +743,7 @@ bool wxTGAHandler::DoCanRead(wxInputStream& stream)
 {
     // read the fixed-size TGA headers
     unsigned char hdr[HDR_SIZE];
-    stream.Read(hdr, HDR_SIZE);
+    stream.Read(hdr, HDR_SIZE);     // it's ok to modify the stream position here
 
     // Check wether we can read the file or not.