From: Cristy Date: Fri, 7 Apr 2017 10:51:36 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.5-5~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fdbdc8d442a0c9d3ac79b474bacdc69293e3dc3;p=imagemagick ... --- diff --git a/MagickCore/string.c b/MagickCore/string.c index 56056d1e4..778f5ef86 100644 --- a/MagickCore/string.c +++ b/MagickCore/string.c @@ -1125,11 +1125,11 @@ MagickExport ssize_t FormatMagickSize(const MagickSizeType size, for (j=2; j < 12; j++) { if (suffix == (const char *) NULL) - count=FormatLocaleString(format,length,"%.*g%s",(int) (i+j),extent, - units[i]); + count=FormatLocaleString(format,length,"%.*g%s",GetMagickPrecision(), + extent,units[i]); else - count=FormatLocaleString(format,length,"%.*g%s%s",(int) (i+j),extent, - units[i],suffix); + count=FormatLocaleString(format,length,"%.*g%s%s",GetMagickPrecision(), + extent,units[i],suffix); if (strchr(format,'+') == (char *) NULL) break; }