From: Cristy Date: Sun, 24 Jul 2016 00:45:24 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.2-6~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc855a02f15cd9e63cf9e3e073be4681dc7bd4c2;p=imagemagick ... --- diff --git a/coders/svg.c b/coders/svg.c index 29cd210c6..fcdc9b6e5 100644 --- a/coders/svg.c +++ b/coders/svg.c @@ -1607,8 +1607,8 @@ static void SVGStartElement(void *context,const xmlChar *name, } if (LocaleCompare(keyword,"stroke-dashoffset") == 0) { - (void) FormatLocaleFile(svg_info->file,"stroke-dashoffset %s\n", - value); + (void) FormatLocaleFile(svg_info->file,"stroke-dashoffset %g\n", + GetUserSpaceCoordinateValue(svg_info,1,value)); break; } if (LocaleCompare(keyword,"stroke-linecap") == 0) @@ -1810,7 +1810,8 @@ static void SVGStartElement(void *context,const xmlChar *name, if (LocaleCompare(keyword,"stroke-dashoffset") == 0) { (void) FormatLocaleFile(svg_info->file, - "stroke-dashoffset %s\n",value); + "stroke-dashoffset %g\n", + GetUserSpaceCoordinateValue(svg_info,1,value)); break; } if (LocaleCompare(keyword,"stroke-linecap") == 0)