Fixes #6213 : when both fattal and filmNegative tools are enabled, copy data from baseCrop, to avoid using the fresh buffer from getImage (un-doing the previous negative inversion).

This minimal change might not be the most correct solution, but it cannot be harmful: at worst, it can only break when both filmNeg and fattal are enabled (a situation wich is already broken).
This commit is contained in:
rom9 2021-04-21 21:53:37 +02:00
parent f47f23a4dc
commit aea1d805f7

View File

@ -720,7 +720,7 @@ void Crop::update(int todo)
parent->imgsrc->getImage(parent->currWB, tr, f, pp, params.toneCurve, params.raw);
parent->imgsrc->convertColorSpace(f, params.icm, parent->currWB);
if (params.dirpyrDenoise.enabled) {
if (params.dirpyrDenoise.enabled || params.filmNegative.enabled) {
// copy the denoised crop
int oy = trafy / skip;
int ox = trafx / skip;