From 4fc43ca619d4ff1a434b3e58d674545ab7ca38e2 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Wed, 8 Feb 2017 21:22:35 +0100 Subject: [PATCH] locallab: fixed a crash --- rtengine/iplocallab.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index d9cd826e1..db00b0114 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -3670,7 +3670,7 @@ void ImProcFunctions::Lab_Local (int call, int sp, float** shbuffer, LabImage * - if ((!lp.inv || !lp.invret) && hueref == INFINITY && chromaref == INFINITY && lumaref == INFINITY) { + if ((!lp.inv && !lp.invret) && hueref == INFINITY && chromaref == INFINITY && lumaref == INFINITY) { //evaluate hue, chroma, luma in center spot int spotSize = 0.88623f * max (1, lp.cir / sk); //18 //O.88623 = sqrt(PI / 4) ==> sqare equal to circle