Fixes crash in ipwavelet, improve behavior mask when one spot with many tools and mask (#6478)

This commit is contained in:
Desmis
2022-05-14 05:41:11 +02:00
committed by GitHub
parent 37080e1b5d
commit 9b837e59b3
2 changed files with 32 additions and 31 deletions

View File

@@ -209,7 +209,7 @@ std::unique_ptr<LUTf> ImProcFunctions::buildMeaLut(const float inVals[11], const
}
}
}
lutFactor = 1.f / lutDiff;
lutFactor = lutDiff == 0.f ? 0.f : 1.f / lutDiff;
return std::unique_ptr<LUTf>(new LUTf(lutVals));
}