diff src/glyphs-x.c @ 112:48d667d6f17f r20-1b8

Import from CVS: tag r20-1b8
author cvs
date Mon, 13 Aug 2007 09:20:48 +0200
parents 4be1180a9e89
children 8619ce7e4c50
line wrap: on
line diff
--- a/src/glyphs-x.c	Mon Aug 13 09:19:47 2007 +0200
+++ b/src/glyphs-x.c	Mon Aug 13 09:20:48 2007 +0200
@@ -1678,6 +1678,12 @@
 		    return GIF_ERROR;
 		}
 	    }
+
+	  /* Only get 1 image from animated gifs. */
+	  /* #### if the rest of the file was bad, we still return
+	     GIF_OK, since we don't even bother looking at it.  Should
+	     probably check for ImageCount == 1 above too, hmm. */
+	  goto done;
 	  break;
 
 	case EXTENSION_RECORD_TYPE:
@@ -1701,6 +1707,8 @@
     }
   while (RecordType != TERMINATE_RECORD_TYPE);
 
+ done:
+
   return GIF_OK;
 }