diff options
-rw-r--r-- | generic/tkImgGIF.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tkImgGIF.c b/generic/tkImgGIF.c index 594ec1e..f0ac047 100644 --- a/generic/tkImgGIF.c +++ b/generic/tkImgGIF.c @@ -1067,7 +1067,12 @@ DoExtension( switch (label) { case 0x01: /* Plain Text Extension */ - /* this extension is ignored, skip below */ + /* + * This extension starts a new scope, so Graphic control Extension + * data should be cleared + */ + *transparent = -1; + /* this extension is ignored, skip below */ break; case 0xf9: /* Graphic Control Extension */ count = GetDataBlock(gifConfPtr, chan, buf); |