From f3ae370ea7be2fb25ae74a03301fbc93f2e8f6aa Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Thu, 7 Sep 2017 16:53:53 +0200 Subject: [PATCH] fixed bug in passing image dimensions to the lensfun correction engine --- rtengine/iptransform.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/iptransform.cc b/rtengine/iptransform.cc index d36e2b5b9..2226c493b 100644 --- a/rtengine/iptransform.cc +++ b/rtengine/iptransform.cc @@ -322,7 +322,7 @@ void ImProcFunctions::transform (Imagefloat* original, Imagefloat* transformed, LensCorrection *pLCPMap = nullptr; if (needsLensfun()) { - pLCPMap = LFDatabase::findModifier(params->lensProf, metadata, fW, fH, params->coarse, rawRotationDeg); + pLCPMap = LFDatabase::findModifier(params->lensProf, metadata, oW, oH, params->coarse, rawRotationDeg); } else if (needsLCP()) { // don't check focal length to allow distortion correction for lenses without chip LCPProfile *pLCPProf = lcpStore->getProfile (params->lensProf.lcpFile);