Browse Source

Fix assert freeze of eeschema when ToHSV, h is Nan

Fixes: lp:1797006
* https://bugs.launchpad.net/kicad/+bug/1797006
pull/13/head
Ronnie Gaensli 7 years ago
committed by Tomasz Włostowski
parent
commit
ab1f016132
  1. 2
      common/gal/color4d.cpp

2
common/gal/color4d.cpp

@ -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…
Cancel
Save