From 92c29bcd65ae36c418b5bd29393602ad905c8fbf Mon Sep 17 00:00:00 2001 From: Ingo Weyrich Date: Fri, 13 Dec 2019 13:50:00 +0100 Subject: [PATCH] Skip capture sharpening for predemosaiced raw files, fixes #5563 --- rtengine/capturesharpening.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rtengine/capturesharpening.cc b/rtengine/capturesharpening.cc index 910de6fd3..281a2ad71 100644 --- a/rtengine/capturesharpening.cc +++ b/rtengine/capturesharpening.cc @@ -700,6 +700,10 @@ namespace rtengine void RawImageSource::captureSharpening(const procparams::CaptureSharpeningParams &sharpeningParams, bool showMask, double &conrastThreshold, double &radius) { + if (!(ri->getSensorType() == ST_BAYER || ri->getSensorType() == ST_FUJI_XTRANS || ri->get_colors() == 1)) { + return; + } + if (plistener) { plistener->setProgressStr(M("TP_PDSHARPENING_LABEL")); plistener->setProgress(0.0);