From: glennrp Date: Wed, 23 Apr 2014 01:00:37 +0000 (+0000) Subject: Fixed new bug due to a typo in the PNG00 fix X-Git-Tag: 7.0.1-0~2423 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48c20621d4ce02a3833b107f710843d1e524d559;p=imagemagick Fixed new bug due to a typo in the PNG00 fix --- 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