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:
Ronnie Gaensli 2018-10-10 00:41:22 +02:00 committed by Tomasz Włostowski
parent a0b8755f47
commit ab1f016132
1 changed files with 1 additions and 1 deletions

View File

@ -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;