]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 19 Jan 2014 15:11:45 +0000 (15:11 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 19 Jan 2014 15:11:45 +0000 (15:11 +0000)
MagickCore/identify.c

index 53d2f7b155e67210b7b5aca0a8705a856afd04bd..e99f0f188d2c4b64cc7ba23d5e26974c938c340f 100644 (file)
@@ -893,8 +893,9 @@ MagickExport MagickBooleanType IdentifyImage(Image *image,FILE *file,
   if (ping == MagickFalse)
     {
       if (image->colorspace == CMYKColorspace)
-        (void) FormatLocaleFile(file,"  Total ink density: %.20g%%\n",100.0*
-          GetImageTotalInkDensity(image,exception)/(double) QuantumRange);
+        (void) FormatLocaleFile(file,"  Total ink density: %*g%%\n",
+          GetMagickPrecision(),100.0*GetImageTotalInkDensity(image,exception)/
+          (double) QuantumRange);
       x=0;
       if (image->alpha_trait == BlendPixelTrait)
         {