diff options
author | oehhar <harald.oehlmann@elmicron.de> | 2022-06-09 13:06:29 (GMT) |
---|---|---|
committer | oehhar <harald.oehlmann@elmicron.de> | 2022-06-09 13:06:29 (GMT) |
commit | a8d8732c51b3f6bcdc52a093aa0b987a120ad9fe (patch) | |
tree | 002a98db703ed16830a0bd600c0b8f48181886ac /generic | |
parent | 9e63cdea29cb5fe117dc6b3a1481f370f0771d0e (diff) | |
download | tk-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.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); |