Segfault when changing to Saturation & Value Blending curve, fixes #4279
This commit is contained in:
parent
2d37fd6676
commit
c05dbf0eb0
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user