]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 21 Sep 2014 22:04:52 +0000 (22:04 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 21 Sep 2014 22:04:52 +0000 (22:04 +0000)
coders/icon.c

index 94bccc8248613301bc63a6ca28f3cc6cf2e47937..2423409ececbd8f30a4fd997b03b03df5155ca7f 100644 (file)
@@ -411,7 +411,7 @@ static Image *ReadICONImage(const ImageInfo *image_info,
             (void) LogMagickEvent(CoderEvent,GetMagickModule(),
               "   bpp    = %.20g",(double) icon_info.bits_per_pixel);
           }
-      if (icon_info.bits_per_pixel <= 16)
+      if ((icon_info.number_colors != 0) || (icon_info.bits_per_pixel <= 16U))
         {
           image->storage_class=PseudoClass;
           image->colors=icon_info.number_colors;