The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Remove empty transformation attribute

These changes was commited to the Birdfont repository Mon, 27 Jun 2016 12:47:45 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Mon, 27 Jun 2016 12:47:45 +0000]

Updated Files

libbirdfont/EmbeddedSvg.vala
--- a/libbirdfont/EmbeddedSvg.vala +++ b/libbirdfont/EmbeddedSvg.vala @@ -88,7 +88,16 @@ svg.append ("""<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">"""); svg.append ("\n"); - svg.append (@"<g transform=\"$(transforms.get_xml ())\">\n"); + svg.append ("<g"); + + string transforms = transforms.get_xml (); + + if (transforms != "") { + svg.append (@" transform=\"$(transforms)\""); + } + + svg.append (">\n"); + svg.append (remove_xml_header (svg_data)); svg.append ("</g>\n");