]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 28 May 2018 20:48:50 +0000 (16:48 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 28 May 2018 20:48:50 +0000 (16:48 -0400)
coders/svg.c

index bab47822a8b40d3d4fb40cc82c39fff00de67848..b8152854c7832a6ded96a7bd7d0496eebeda57a4 100644 (file)
@@ -2573,7 +2573,7 @@ static void SVGEndElement(void *context,const xmlChar *name)
             keyword=(char *) tokens[j];
             value=(char *) tokens[j+1];
             (void) FormatLocaleFile(svg_info->file,"push class \"%s\"\n",
-              keyword);
+              *keyword == '.' ? keyword+1 : keyword);
             SVGProcessStyleElement(context,name,value);
             (void) FormatLocaleFile(svg_info->file,"pop class\n");
           }