From: Tony Cook <tony@develop-help.com> Date: Mon, 15 Oct 2012 08:39:36 +0000 (+1100) Subject: initialize the SortFlag for colour maps for giflib 5.x X-Git-Tag: v0.93~6 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/2e7205447bb9db8ab23e7143eb0c1876d47ed321 initialize the SortFlag for colour maps for giflib 5.x --- diff --git a/GIF/imgif.c b/GIF/imgif.c index a0c31b72..8dfe8345 100644 --- a/GIF/imgif.c +++ b/GIF/imgif.c @@ -1210,6 +1210,9 @@ make_gif_map(i_quantize *quant, i_img *img, int want_trans) { i_push_error(0, "Could not create color map object"); return NULL; } +#if defined GIFLIB_MAJOR && GIFLIB_MAJOR >= 5 + map->SortFlag = 0; +#endif return map; }