raw ca correction/avoid colour shift: fire event only if raw ca correction is active, #4777

This commit is contained in:
heckflosse 2018-09-08 13:09:55 +02:00
parent ec4115512a
commit 88d0f60d6b

View File

@ -147,7 +147,7 @@ void RAWCACorr::checkBoxToggled (CheckBox* c, CheckValue newval)
listener->panelChanged (EvPreProcessAutoCA, caAutocorrect->getLastActive() ? M("GENERAL_ENABLED") : M("GENERAL_DISABLED"));
}
} else if (c == caAvoidcolourshift) {
if (listener) {
if (listener && (caAutocorrect->getLastActive() || caRed->getValue() != 0 || caBlue->getValue() != 0)) {
listener->panelChanged (EvPreProcessCAColourshift, caAvoidcolourshift->getLastActive() ? M("GENERAL_ENABLED") : M("GENERAL_DISABLED"));
}
}