RT Crashes on CL LAB curve, fixes #4402

This commit is contained in:
heckflosse 2018-02-16 13:53:09 +01:00
parent 20fcffae94
commit faeac1286e

View File

@ -5883,7 +5883,7 @@ void ImProcFunctions::chromiLuminanceCurve (PipetteBuffer *pipetteBuffer, int pW
editWhatever->v (i, j) = LIM01<float> (LL / 100.f); // Lab C=f(L) pipette
}
if (clut) { // begin C=f(L)
if (clut && LL > 0.f) { // begin C=f(L)
float factorskin, factorsat, factor, factorskinext;
float chromaCfactor = (clcurve[LL * 655.35f]) / (LL * 655.35f); //apply C=f(L)
float curf = 0.7f; //empirical coeff because curve is more progressive