From 5c932dd2d955eb528e312e5cb6be9a9616d29908 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 20 Dec 2017 00:30:51 +0100 Subject: [PATCH] Save_GIF(): fix for 1 pixel GIFs --- src/fileformats.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fileformats.c b/src/fileformats.c index 93d3120e..892755f1 100644 --- a/src/fileformats.c +++ b/src/fileformats.c @@ -3290,7 +3290,7 @@ void Save_GIF(T_IO_Context * context) start=current_string=GIF_next_pixel(context, &IDB); descend=1; - do + while ((!GIF_stop) && (!File_error)) { current_char=GIF_next_pixel(context, &IDB); @@ -3357,7 +3357,6 @@ void Save_GIF(T_IO_Context * context) descend=1; } } - while ((!GIF_stop) && (!File_error)); if (!File_error) {