From: Cristy Date: Sat, 11 Mar 2017 13:24:42 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.5-3~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca08b05e467b2e0410dcb057061bfb761c4e0669;p=imagemagick ... --- diff --git a/MagickCore/colorspace.c b/MagickCore/colorspace.c index 44a9c479d..6da8291af 100644 --- a/MagickCore/colorspace.c +++ b/MagickCore/colorspace.c @@ -1402,10 +1402,9 @@ static inline void ConvertxyYToRGB(const double low_x,const double low_y, Y, Z; - gamma=PerceptibleReciprocal(low_y*low_x); - X=gamma*cap_Y; - Y=cap_Y; gamma=PerceptibleReciprocal(low_y); + X=gamma*cap_Y*low_x; + Y=cap_Y; Z=gamma*cap_Y*(1.0-low_x-low_y); ConvertXYZToRGB(X,Y,Z,red,green,blue); }