Commit 03e9b8b
Fix SVG format setting
Changed files (2)
Diff
@@ -158,10 +158,6 @@ public class SvgParser { has_format = true; } }- - if (format != SvgFormat.NONE) {- parser.set_format (format);- } // parse the file if (!has_format) {@@ -1138,13 +1134,13 @@ public class SvgParser { } move_and_resize (bezier_points, points, svg_glyph, units, glyph);- path_list = create_svg_paths (d, format);+ path_list = create_svg_paths (d); // TODO: Find out if it is possible to tie handles. return path_list; } - public PathList create_svg_paths (string path_data, SvgFormat format) {+ public PathList create_svg_paths (string path_data) { Gee.ArrayList<Points> points_set = SvgFile.parse_points (path_data, format); PathList path_list = new PathList (); @@ -870,8 +870,6 @@ public class SvgFile : GLib.Object { } if (format == SvgFormat.ILLUSTRATOR) {- print ("Remove first");- Gee.ArrayList<Points> illustrator_path_data = new Gee.ArrayList<Points> (); foreach (Points p in path_data) {@@ -914,8 +912,9 @@ public class SvgFile : GLib.Object { return double.parse ((!) s); } - // FIXME: rename to instructions- public static void get_bezier_points (string point_data, out BezierPoints[] bezier_points, out int points, bool svg_glyph) {+ public static void get_bezier_points (string point_data, + out BezierPoints[] bezier_points, out int points, bool svg_glyph) {+ double px = 0; double py = 0; double px2 = 0;