]> granicus.if.org Git - imagemagick/commitdiff
Gray colorspace is linear
authorCristy <urban-warrior@imagemagick.org>
Sun, 24 Dec 2017 17:55:52 +0000 (12:55 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 24 Dec 2017 17:55:52 +0000 (12:55 -0500)
MagickCore/colorspace.c

index 698be02f7dd3c92b80d58f2c656220ee33631613..8ee7c70763f67b9947e28fe525a91c41bda83526 100644 (file)
@@ -1155,7 +1155,7 @@ MagickExport MagickBooleanType SetImageColorspace(Image *image,
   type=image->type;
   if (IsGrayColorspace(colorspace) != MagickFalse)
     {
-      if (image->colorspace == GRAYColorspace)
+      if (colorspace == GRAYColorspace)
         image->gamma=1.000;
       type=GrayscaleType;
     }