Make history event correctly show "Defish - Focal Length" when changing the focal length of the defish tool

This commit is contained in:
Alexander Brock 2024-09-12 21:06:52 +02:00
parent ac7b3fc651
commit 53a64a9235

View File

@ -128,7 +128,12 @@ void Distortion::setDefaults (const ProcParams* defParams, const ParamsEdited* p
void Distortion::adjusterChanged(Adjuster* a, double newval)
{
if (listener) {
listener->panelChanged (EvDISTAmount, Glib::ustring::format (std::setw(4), std::fixed, std::setprecision(3), a->getValue()));
if (a == focal_length) {
listener->panelChanged (*event_distortion_defish_focal_length, Glib::ustring::format (std::setw(4), std::fixed, std::setprecision(2), a->getValue()));
}
else if (a == distor) {
listener->panelChanged (EvDISTAmount, Glib::ustring::format (std::setw(4), std::fixed, std::setprecision(3), a->getValue()));
}
}
}