The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Validate XML when importing SVG file

Changes made to libbirdfont/OpenFontFormat/SvgTable.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/OpenFontFormat/SvgTable.vala +++ libbirdfont/OpenFontFormat/SvgTable.vala @@ -70,12 +70,13 @@ svg_tags = new Gee.ArrayList<Tag> (); meta = new Gee.ArrayList<Tag> (); xml = new XmlParser (svg_data); - svg_root_tag = xml.get_root_tag (); if (!xml.validate ()) { warning("Invalid SVG data in TTF table."); return; } + + svg_root_tag = xml.get_root_tag (); foreach (Tag tag in svg_root_tag) { string name = tag.get_name();