From 48c20621d4ce02a3833b107f710843d1e524d559 Mon Sep 17 00:00:00 2001 From: glennrp Date: Wed, 23 Apr 2014 01:00:37 +0000 Subject: [PATCH] Fixed new bug due to a typo in the PNG00 fix --- coders/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/png.c b/coders/png.c index a0cb513cb..66f1561a7 100644 --- a/coders/png.c +++ b/coders/png.c @@ -9446,7 +9446,7 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info, image_colors=(int) image->colors; image_matte=image->alpha_trait == BlendPixelTrait ? MagickTrue : MagickFalse; - if (mng_info->write_png_colortype > 4) + if (mng_info->write_png_colortype < 5) mng_info->IsPalette=image->storage_class == PseudoClass && image_colors <= 256 && image->colormap != NULL; else -- 2.40.0