From 01c59f343b08e68f904ea77ca88fa1e6833886e0 Mon Sep 17 00:00:00 2001 From: Desmis Date: Sun, 7 Jun 2020 17:28:57 +0200 Subject: [PATCH] Fixed crash in output softlight illusion --- rtengine/iplocallab.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index 1017da254..3bf6e80da 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -15082,13 +15082,13 @@ void ImProcFunctions::Lab_Local( for (int y = 0; y < bfh ; y++) { for (int x = 0; x < bfw; x++) { const float ar = LIM01(tmpImageorig->r(y, x)); - const float br = lp.mergemet == 3 ? ar : tmpImagereserv->r(y, x); + const float br = lp.mergemet >= 2 ? ar : tmpImagereserv->r(y, x); tmpImageorig->r(y, x) = intp(lp.opacol, softlig2(ar, br), tmpImageorig->r(y, x)); const float ag = LIM01(tmpImageorig->g(y, x)); - const float bg = lp.mergemet == 3 ? ag : tmpImagereserv->g(y, x); + const float bg = lp.mergemet >= 2 ? ag : tmpImagereserv->g(y, x); tmpImageorig->g(y, x) = intp(lp.opacol, softlig2(ag, bg), tmpImageorig->g(y, x)); const float ab = LIM01(tmpImageorig->b(y, x)); - const float bb = lp.mergemet == 3 ? ab : tmpImagereserv->b(y, x); + const float bb = lp.mergemet >= 2 ? ab : tmpImagereserv->b(y, x); tmpImageorig->b(y, x) = intp(lp.opacol, softlig2(ab, bb), tmpImageorig->b(y, x)); } }