]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 2 Jun 2015 20:20:03 +0000 (20:20 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 2 Jun 2015 20:20:03 +0000 (20:20 +0000)
MagickCore/color.c

index 011d5dc5214ff9ccf5fb3d5a254a3ec752a2d18e..300bb0eeba56208cc997ca112fdf86beadcd6c4e 100644 (file)
@@ -2411,12 +2411,13 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name,
                   geometry_info.psi);
               else
                 if (color->alpha_trait != UndefinedPixelTrait)
-                  color->alpha=(double) ClampToQuantum(scale*
+                  color->alpha=(double) ClampToQuantum(QuantumRange*
                     geometry_info.psi);
             }
           if (((flags & ChiValue) != 0) &&
               (color->alpha_trait != UndefinedPixelTrait))
-            color->alpha=(double) ClampToQuantum(scale*geometry_info.chi);
+            color->alpha=(double) ClampToQuantum(QuantumRange*
+              geometry_info.chi);
           if (color->colorspace == LabColorspace)
             {
               if ((flags & SigmaValue) != 0)
@@ -2433,7 +2434,7 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name,
               color->blue=color->red;
               if (((flags & SigmaValue) != 0) &&
                   (color->alpha_trait != UndefinedPixelTrait))
-                color->alpha=(double) ClampToQuantum(scale*
+                color->alpha=(double) ClampToQuantum(QuantumRange*
                   geometry_info.sigma);
             }
           if ((LocaleCompare(colorspace,"HCL") == 0) ||