From f876c6209bcf206d5ccb13684f5a4e480fa97dac Mon Sep 17 00:00:00 2001 From: Alexander Trufanov Date: Sun, 30 Jul 2023 13:34:10 +0300 Subject: [PATCH] Fix Apply to dialog for new threshold params --- src/core/filters/output/Params.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/core/filters/output/Params.cpp b/src/core/filters/output/Params.cpp index 460851ca0..183ff3cbf 100644 --- a/src/core/filters/output/Params.cpp +++ b/src/core/filters/output/Params.cpp @@ -144,16 +144,13 @@ Params::setColorParams(ColorParams const& params, ColorParamsApplyFilter const& break; case CopyAllThresholds: { - BlackWhiteOptions opt = m_colorParams.blackWhiteOptions(); - opt.setThresholdAdjustment(params.blackWhiteOptions().thresholdAdjustment()); - opt.setThresholdForegroundAdjustment(params.blackWhiteOptions().thresholdForegroundAdjustment()); - m_colorParams.setBlackWhiteOptions(opt); + m_colorParams.setBlackWhiteOptions(params.blackWhiteOptions()); } break; case CopyThreshold: { - BlackWhiteOptions opt = m_colorParams.blackWhiteOptions(); - opt.setThresholdAdjustment(params.blackWhiteOptions().thresholdAdjustment()); + BlackWhiteOptions opt = params.blackWhiteOptions(); + opt.setThresholdForegroundAdjustment(m_colorParams.blackWhiteOptions().thresholdForegroundAdjustment()); m_colorParams.setBlackWhiteOptions(opt); } break;