]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 30 Jan 2012 13:55:00 +0000 (13:55 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 30 Jan 2012 13:55:00 +0000 (13:55 +0000)
coders/png.c

index 28afe940075afc540e4aa7314a447aad238a0633..7c3ba284a2b53907395704c48560b0eee1762e86 100644 (file)
@@ -11170,7 +11170,7 @@ static MagickBooleanType WritePNGImage(const ImageInfo *image_info,
       if (LocaleCompare(value,"0") == 0)
         mng_info->write_png_compression_level = 1;
 
-      if (LocaleCompare(value,"1") == 0)
+      else if (LocaleCompare(value,"1") == 0)
         mng_info->write_png_compression_level = 2;
 
       else if (LocaleCompare(value,"2") == 0)