]> granicus.if.org Git - imagemagick/commitdiff
Fixed new bug due to a typo in the PNG00 fix
authorglennrp <glennrp@git.imagemagick.org>
Wed, 23 Apr 2014 01:00:37 +0000 (01:00 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Wed, 23 Apr 2014 01:00:37 +0000 (01:00 +0000)
coders/png.c

index a0cb513cb6418db2d72e840e13ba6778b3efd7f1..66f1561a7ce3de528d5ec0eb12aeab611b2b9b7a 100644 (file)
@@ -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