commit | 89106f86b28a27c7b7d9b07e13db58516ab8d01f | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Mon May 06 17:04:29 2013 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Mon May 06 17:04:29 2013 +0000 |
tree | 4e0d8f21174daf1130de59bef02e6e47d74d7baf | |
parent | 0c125416d27796cd9becc0df8cbb763ee1c5e189 [diff] [blame] |
diff --git a/MagickCore/gem.c b/MagickCore/gem.c index 37cb75a..55b8e4a 100644 --- a/MagickCore/gem.c +++ b/MagickCore/gem.c
@@ -1341,10 +1341,10 @@ ConvertXYZToLab(X,Y,Z,luma,&a,&b); *chroma=hypot(255.0*(a-0.5),255.0*(b-0.5)); *hue=180.0*atan2(255.0*(b-0.5),255.0*(a-0.5))/MagickPI; - if (*hue < 0.0) - *hue+=360.0; *chroma=(*chroma)/255.0+0.5; *hue=(*hue)/255.0+0.5; + if (*hue < 0.0) + *hue+=1.0; } MagickPrivate void ConvertRGBToLCHab(const double red,const double green,