Segfault when pasting a copied profile with retinex filter, fixes #2913

This commit is contained in:
heckflosse
2015-09-22 17:26:40 +02:00
parent bedd95e181
commit 5f2151ba4d
3 changed files with 8 additions and 3 deletions

View File

@@ -1065,7 +1065,7 @@ void ParamsEdited::combine (rtengine::procparams::ProcParams& toEdit, const rten
if (retinex.slope) {
toEdit.retinex.slope = mods.retinex.slope;
}
if (retinex.str) {
toEdit.retinex.str = dontforceSet && options.baBehav[ADDSET_DH_STR] ? toEdit.retinex.str + mods.retinex.str : mods.retinex.str;
}
@@ -2681,3 +2681,8 @@ bool LensProfParamsEdited::isUnchanged() const
{
return lcpFile;
}
bool RetinexParamsEdited::isUnchanged() const
{
return enabled && retinexcolorspace && gammaretinex && gam && slope;
}