]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 24 Jul 2016 00:45:24 +0000 (20:45 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 24 Jul 2016 00:45:24 +0000 (20:45 -0400)
coders/svg.c

index 29cd210c65badcaa559db4367de61417fadc5875..fcdc9b6e5534edf5cedd844602820b2ecbc18f1e 100644 (file)
@@ -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)