From 67475cb6aa3af3a0c65351562c22f25814a45fcb Mon Sep 17 00:00:00 2001 From: scuri Date: Sun, 23 Aug 2009 23:57:50 +0000 Subject: *** empty log message *** --- src/im_format_gif.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/im_format_gif.cpp') diff --git a/src/im_format_gif.cpp b/src/im_format_gif.cpp index d616504..caadd0f 100644 --- a/src/im_format_gif.cpp +++ b/src/im_format_gif.cpp @@ -2,7 +2,7 @@ * \brief GIF - Graphics Interchange Format * * See Copyright Notice in im_lib.h - * $Id: im_format_gif.cpp,v 1.4 2009/08/19 18:39:43 scuri Exp $ + * $Id: im_format_gif.cpp,v 1.5 2009/08/23 23:57:51 scuri Exp $ */ #include "im_format.h" @@ -1247,7 +1247,11 @@ int imFileFormatGIF::GIFWriteImageInfo() int imFileFormatGIF::ReadImageInfo(int index) { imAttribTable* attrib_table = AttribTable(); + + /* must clear the attribute list, because it can have multiple images and + has many attributes that may exists only for specific images. */ attrib_table->RemoveAll(); + imFileSetBaseAttributes(this); if (gif_data.screen_width) { -- cgit v1.2.3