Segfault when changing to Saturation & Value Blending curve, fixes #4279

This commit is contained in:
heckflosse 2018-01-06 16:43:28 +01:00
parent 2d37fd6676
commit c05dbf0eb0

View File

@ -1118,6 +1118,10 @@ inline void SatAndValueBlendingToneCurve::Apply (float& r, float& g, float& b) c
const float lum = (r + g + b) / 3.f;
const float newLum = lutToneCurve[lum];
if (newLum == lum) {
return;
}
float h, s, v;
Color::rgb2hsvtc(r, g, b, h, s, v);