Fix assert freeze of eeschema when ToHSV, h is Nan
Fixes: lp:1797006 * https://bugs.launchpad.net/kicad/+bug/1797006
This commit is contained in:
parent
a0b8755f47
commit
ab1f016132
|
@ -400,7 +400,7 @@ COLOR4D& COLOR4D::Saturate( double aFactor )
|
|||
{
|
||||
double h, s, v;
|
||||
|
||||
ToHSV( h, s, v );
|
||||
ToHSV( h, s, v, true );
|
||||
FromHSV( h, aFactor, 1.0 );
|
||||
|
||||
return *this;
|
||||
|
|
Loading…
Reference in New Issue