summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2022-06-09 13:06:29 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2022-06-09 13:06:29 (GMT)
commita8d8732c51b3f6bcdc52a093aa0b987a120ad9fe (patch)
tree002a98db703ed16830a0bd600c0b8f48181886ac /generic
parent9e63cdea29cb5fe117dc6b3a1481f370f0771d0e (diff)
downloadtk-a8d8732c51b3f6bcdc52a093aa0b987a120ad9fe.zip
tk-a8d8732c51b3f6bcdc52a093aa0b987a120ad9fe.tar.gz
tk-a8d8732c51b3f6bcdc52a093aa0b987a120ad9fe.tar.bz2
GIF read: honor that "Plain Text Extension" limits the scope of a "Graphic Control Extension", reset saved information
Diffstat (limited to 'generic')
-rw-r--r--generic/tkImgGIF.c7
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);