From ca08b05e467b2e0410dcb057061bfb761c4e0669 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 11 Mar 2017 08:24:42 -0500 Subject: [PATCH] ... --- MagickCore/colorspace.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } -- 2.40.0