From 3b8fbd56e27ae4342cd2667b8b079d7661109b08 Mon Sep 17 00:00:00 2001 From: Ingo Date: Sun, 21 Dec 2014 15:52:52 +0100 Subject: [PATCH] Strange new rendering in Rt 4.2.42 when one or more channels are blown and using NR or ciecam02, Issue 2614 --- rtengine/color.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/color.cc b/rtengine/color.cc index e1ef4250b..3203642e2 100644 --- a/rtengine/color.cc +++ b/rtengine/color.cc @@ -866,8 +866,8 @@ namespace rtengine { float fx,fy,fz; fx = (x<=65535.0f ? cachef[x] : (327.68f*xcbrtf(x/MAXVALF))); - fy = (y<=65535.0f ? cachef[y] : (327.68f*xcbrtf(x/MAXVALF))); - fz = (z<=65535.0f ? cachef[z] : (327.68f*xcbrtf(x/MAXVALF))); + fy = (y<=65535.0f ? cachef[y] : (327.68f*xcbrtf(y/MAXVALF))); + fz = (z<=65535.0f ? cachef[z] : (327.68f*xcbrtf(z/MAXVALF))); L = (116.0f * fy - 5242.88f); //5242.88=16.0*327.68; a = (500.0f * (fx - fy) );