Make history event correctly show "Defish - Focal Length" when changing the focal length of the defish tool
This commit is contained in:
parent
ac7b3fc651
commit
53a64a9235
@ -128,9 +128,14 @@ void Distortion::setDefaults (const ProcParams* defParams, const ParamsEdited* p
|
|||||||
void Distortion::adjusterChanged(Adjuster* a, double newval)
|
void Distortion::adjusterChanged(Adjuster* a, double newval)
|
||||||
{
|
{
|
||||||
if (listener) {
|
if (listener) {
|
||||||
|
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()));
|
listener->panelChanged (EvDISTAmount, Glib::ustring::format (std::setw(4), std::fixed, std::setprecision(3), a->getValue()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Distortion::setBatchMode (bool batchMode)
|
void Distortion::setBatchMode (bool batchMode)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user