]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 4 Apr 2013 22:47:28 +0000 (22:47 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 4 Apr 2013 22:47:28 +0000 (22:47 +0000)
MagickCore/gem.c

index c74ca1aedafe0cd8fff125c7288ecf9bb9d8d1a9..c01f8da77d09018150a2c512444b2b31d52cdb6c 100644 (file)
@@ -813,9 +813,9 @@ MagickPrivate void ConvertRGBToLCH(const double red,const double green,
   ConvertXYZToLab(X,Y,Z,&L,&a,&b);
   C=hypot(a-0.5,b-0.5);
   H=180.0*atan2(b-0.5,a-0.5)/MagickPI;
-  if (H < 360.0)
+  if (H < 0.0)
     H+=360.0;
-  if (H > 360.0)
+  if (H >= 360.0)
     H-=360.0;
   *luma=L;
   *chroma=C;