From dfbd6ddf00e94e22cf4b396b236b724cc248af66 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 20 Jul 2019 09:54:36 +0200 Subject: [PATCH] Removed unnecessary check. --- coders/icon.c | 2 -- 1 file changed, 2 deletions(-) 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) -- 2.40.0