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

@@ -38,7 +38,7 @@ inline void clipLAB(float iL, float ia, float ib, float &oL, float &oa, float &o
{
if (iL < 0.f) {
oL = oa = ob = 0.f;
} else if (iL > 32768.f) {
} else if (iL > 32768.f || min(ia, ib) < -42000.f || max(ia, ib) > 42000.f) {
float X, Y, Z;
float r, g, b;