Comment 3 for bug 1797006

Jeff Young (jeyjey) wrote :

Hi Ronnie,

Thanks for the patch. I think it would be safer, though, to flip the default value of aAlwaysDefineHue and then change the 3 calls in COLOR4D::GetNearestLegacyColor() to pass false.

That way future users of ToHSV() won't fall into the same trap.