'processing profile -> reset to default' and 'processing profile -> clear' seem broken, fixes #4874

This commit is contained in:
heckflosse
2018-10-18 11:41:00 +02:00
parent a7f64a53a4
commit 415772254f
3 changed files with 5 additions and 4 deletions

View File

@@ -417,10 +417,11 @@ bool Thumbnail::hasProcParams () const
return pparamsValid;
}
void Thumbnail::setProcParams (const ProcParams& pp, ParamsEdited* pe, int whoChangedIt, bool updateCacheNow)
void Thumbnail::setProcParams (const ProcParams& pp, ParamsEdited* pe, int whoChangedIt, bool updateCacheNow, bool resetToDefault)
{
const bool needsReprocessing =
pparams.toneCurve != pp.toneCurve
resetToDefault
|| pparams.toneCurve != pp.toneCurve
|| pparams.labCurve != pp.labCurve
|| pparams.localContrast != pp.localContrast
|| pparams.rgbCurves != pp.rgbCurves