From 3a5213454fe0b2872c7f9ba5099140e2bdfe04c0 Mon Sep 17 00:00:00 2001 From: Desmis Date: Wed, 15 Jul 2020 18:32:32 +0200 Subject: [PATCH] Correct bad hue calculation in locallabtools --- rtengine/color.h | 1 - rtgui/locallabtools.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rtengine/color.h b/rtengine/color.h index 55ef52e36..9dde1ca60 100644 --- a/rtengine/color.h +++ b/rtengine/color.h @@ -1839,7 +1839,6 @@ public: } else if (HH >= -0.1f && HH < 0.f ) { hr = 0.1 * double(HH) + 0.93; //hr 0.92 0.93 red } - // in case of ! if (hr < 0.0) { hr += 1.0; diff --git a/rtgui/locallabtools.cc b/rtgui/locallabtools.cc index af5d14377..e015d91b0 100644 --- a/rtgui/locallabtools.cc +++ b/rtgui/locallabtools.cc @@ -253,7 +253,7 @@ void LocallabTool::refChanged(const double huer, const double lumar, const doubl // Hue reference normalization (between 0 and 1) double normHuer = huer; float h = Color::huelab_to_huehsv2(normHuer); - h += 1.f / 6.f; + // h += 1.f / 6.f; if (h > 1.f) { h -= 1.f;