Skip to content

Commit

Permalink
Fix Apply to dialog for new threshold params
Browse files Browse the repository at this point in the history
  • Loading branch information
trufanov-nok authored and Труфанов Александр committed Jul 30, 2023
1 parent c650932 commit f876c62
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/core/filters/output/Params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f876c62

Please sign in to comment.