From: Cristy Date: Tue, 27 Mar 2018 23:09:58 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1065 X-Git-Tag: 7.0.7-29~290 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff7222844e2b761357a93a7d3212135ac9dc4cfd;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1065 --- diff --git a/MagickCore/gem.c b/MagickCore/gem.c index 6db3e47b4..51f7b6483 100644 --- a/MagickCore/gem.c +++ b/MagickCore/gem.c @@ -1084,7 +1084,7 @@ MagickExport void ConvertRGBToHSL(const double red,const double green, QuantumScale*blue)); c=max-min; *lightness=(max+min)/2.0; - if (c <= 0.0) + if (c < MagickEpsilon) { *hue=0.0; *saturation=0.0;