From: cristy Date: Mon, 30 Jan 2012 13:55:00 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6297 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40695b643d0ddade31121735e37ae858b8882192;p=imagemagick --- diff --git a/coders/png.c b/coders/png.c index 28afe9400..7c3ba284a 100644 --- a/coders/png.c +++ b/coders/png.c @@ -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)