]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1681
authorCristy <urban-warrior@imagemagick.org>
Sat, 7 Sep 2019 13:01:07 +0000 (09:01 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 7 Sep 2019 13:01:07 +0000 (09:01 -0400)
MagickCore/color.c

index a2c5de60c5c4a17859897eb2dd1588a7a5fc598d..24b707cf02817cfccca3533b1b8a78b0976b93f5 100644 (file)
@@ -2475,12 +2475,6 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name,
               (color->alpha_trait != UndefinedPixelTrait))
             color->alpha=(double) ClampToQuantum(QuantumRange*
               geometry_info.sigma);
-          if ((icc_color == MagickFalse) &&
-              (color->colorspace == LinearGRAYColorspace))
-            {
-              color->colorspace=GRAYColorspace;
-              color->depth=8;
-            }
         }
       if ((LocaleCompare(colorspace,"HCL") == 0) ||
           (LocaleCompare(colorspace,"HSB") == 0) ||