]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 26 Sep 2009 18:49:11 +0000 (18:49 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 26 Sep 2009 18:49:11 +0000 (18:49 +0000)
magick/color.c

index d1fafd5523b1375a785f93762652fc897156e13e..f80c06b53bc1fce351f58ed005076d9181862f67 100644 (file)
@@ -3313,11 +3313,11 @@ MagickExport MagickBooleanType QueryMagickColor(const char *name,
           PixelPacket
             pixel;
 
-          geometry_info.rho=fmod(fmod(scale*geometry_info.rho,360.0)+360.0,
-            360.0)/360.0;
           scale=1.0/255.0;
           if ((flags & PercentValue) != 0)
             scale=1.0/100.0;
+          geometry_info.rho=fmod(fmod(scale*geometry_info.rho,360.0)+360.0,
+            360.0)/360.0;
           geometry_info.sigma*=scale;
           geometry_info.xi*=scale;
           ConvertHSLToRGB(geometry_info.rho,geometry_info.sigma,