From b989c271d8c66d137e62301fe0bf25e187ef9830 Mon Sep 17 00:00:00 2001 From: Desmis Date: Mon, 18 Apr 2022 13:01:10 +0200 Subject: [PATCH] Fixed bug bad behavior Log encoding issue 6459 --- rtengine/iplocallab.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index b3618bfb3..ac87c75d7 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -13327,7 +13327,7 @@ void ImProcFunctions::Lab_Local( } //encoding lab at the beginning - if (lp.logena || lp.showmasklogmet == 2 || lp.enaLMask || lp.showmasklogmet == 3 || lp.showmasklogmet == 4) { + if (lp.logena && (lp.showmasklogmet == 2 || lp.enaLMask || lp.showmasklogmet == 3 || lp.showmasklogmet == 4)) { const int ystart = rtengine::max(static_cast(lp.yc - lp.lyT) - cy, 0); const int yend = rtengine::min(static_cast(lp.yc + lp.ly) - cy, original->H);