Commit 8b3eb6f0 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

Apply patch #76254 from Roman I Khimov about lensfun interface which don't...

Apply patch #76254 from Roman I Khimov about lensfun interface which don't mangle cropFactor if it's set.
This behaviour was introduced by polish commit bebef401.
With this branch present we always get cropFactor of
-1.0 in LensFunFilter::filterImage() and given that lensfun library just uses
crop factor of 1 which leads to obviously wrong calculations for cropped
cameras.
BUGS: 312764
BUGS: 253941
BUGS: 266204
BUGS: 267613
BUGS: 281783
BUGS: 284708
FIXED-IN: 3.0.0
CCMAIL: rik@osrc.info
parent 93fc92b2
...@@ -687,10 +687,6 @@ void LensFunCameraSelector::slotLensSelected() ...@@ -687,10 +687,6 @@ void LensFunCameraSelector::slotLensSelected()
{ {
settings.cropFactor = d->iface->usedLens()->CropFactor; settings.cropFactor = d->iface->usedLens()->CropFactor;
} }
else
{
settings.cropFactor = -1.0;
}
d->iface->setSettings(settings); d->iface->setSettings(settings);
emit signalLensSettingsChanged(); emit signalLensSettingsChanged();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment