]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/anidecod.cpp
Don't handle "Return" key as "TAB" even when the default button is disabled.
[wxWidgets.git] / src / common / anidecod.cpp
index 2cb075948d1070c40385019f4c0d7fedfc44c94e..d0d0b6d75bc7c034b17ac9a4e7573ab1714991eb 100644 (file)
@@ -127,7 +127,7 @@ bool wxANIDecoder::DoCanRead(wxInputStream& stream) const
     wxInt32 anih32;
     memcpy( &anih32, "anih", 4 );
 
-    if ( stream.SeekI(0) == wxInvalidOffset )
+    if ( stream.IsSeekable() && stream.SeekI(0) == wxInvalidOffset )
     {
         return false;
     }
@@ -225,7 +225,7 @@ bool wxANIDecoder::Load( wxInputStream& stream )
     wxInt32 seq32;
     memcpy( &seq32, "seq ", 4 );
 
-    if ( stream.SeekI(0) == wxInvalidOffset)
+    if ( stream.IsSeekable() && stream.SeekI(0) == wxInvalidOffset )
     {
         return false;
     }