From: Dirk Lemstra Date: Sat, 20 Jul 2019 07:54:36 +0000 (+0200) Subject: Removed unnecessary check. X-Git-Tag: 7.0.8-56~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfbd6ddf00e94e22cf4b396b236b724cc248af66;p=imagemagick Removed unnecessary check. --- diff --git a/coders/icon.c b/coders/icon.c index 60cc13a93..6d225108b 100644 --- a/coders/icon.c +++ b/coders/icon.c @@ -1045,8 +1045,6 @@ static MagickBooleanType WriteICONImage(const ImageInfo *image_info, Colormapped ICON raster. */ icon_info.bits_per_pixel=8; - if (next->colors <= 256) - icon_info.bits_per_pixel=8; if (next->colors <= 16) icon_info.bits_per_pixel=4; if (next->colors <= 2)