fix crash when the CL curve is such that curve(0) >> 0

This commit is contained in:
Alberto Griggio
2018-04-12 21:51:57 +02:00
parent 3bcae75b9c
commit f8c06863fe
2 changed files with 3 additions and 3 deletions

View File

@@ -4682,8 +4682,8 @@ void ImProcFunctions::chromiLuminanceCurve (PipetteBuffer *pipetteBuffer, int pW
factorsat = chromaCfactor;
factor = factorsat;
Color::transitred ( HH, Chprov1, dred, factorskin, protect_redcur, factorskinext, deltaHH, factorsat, factor);
atmp *= factor;
btmp *= factor;
atmp = LIM(atmp * factor, min(-42000.f, atmp), max(42000.f, atmp));
btmp = LIM(btmp * factor, min(-42000.f, btmp), max(42000.f, btmp));
}
// end C=f(L)