do not apply profiled vignette correction if the correction mode is set to 'None'

Fixes #4480
This commit is contained in:
Alberto Griggio
2018-04-04 13:36:18 +02:00
parent 4344603a3d
commit 681361c091

View File

@@ -1798,7 +1798,7 @@ void RawImageSource::preprocess (const RAWParams &raw, const LensProfParams &le
}
// Correct vignetting of lens profile
if (!hasFlatField && lensProf.useVign) {
if (!hasFlatField && lensProf.useVign && lensProf.lcMode != LensProfParams::LcMode::NONE) {
std::unique_ptr<LensCorrection> pmap;
if (lensProf.useLensfun()) {
pmap = LFDatabase::findModifier(lensProf, idata, W, H, coarse, -1);