]> granicus.if.org Git - imagemagick/commitdiff
Removed unnecessary check.
authorDirk Lemstra <dirk@lemstra.org>
Sat, 20 Jul 2019 07:54:36 +0000 (09:54 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Sat, 20 Jul 2019 07:54:56 +0000 (09:54 +0200)
coders/icon.c

index 60cc13a934b0ed777d4cac42a2aadb9e66e84336..6d225108b39f98fcf7e26d9154e7a50c57fe9c7d 100644 (file)
@@ -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)