From 11093f939b35c30c3f9421bc8426804dcb27ff97 Mon Sep 17 00:00:00 2001 From: DrSlony Date: Wed, 22 Jul 2015 21:36:07 +0200 Subject: [PATCH] Issue 2842: Fix by Ingo to prevent black square artifacts from appearing when using Post-Resize Sharpening - RL Deconvolution and a non-zero value for the Black slider. --- rtengine/simpleprocess.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rtengine/simpleprocess.cc b/rtengine/simpleprocess.cc index 83d8bfd03..bb6203d15 100644 --- a/rtengine/simpleprocess.cc +++ b/rtengine/simpleprocess.cc @@ -886,7 +886,11 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p labView = tmplab; cw = labView->W; ch = labView->H; - if(params.prsharpening.enabled) { + if(params.prsharpening.enabled) { + for(int i=0;iL[i][j] = labView->L[i][j] < 0.f ? 0.f : labView->L[i][j]; + float **buffer = new float*[ch]; for (int i=0; i