Commit bfd6c97
Merge branch 'master' of github.com:johanmattssonm/birdfont
Changed files (4)
modifiedlibbirdfont/BackgroundTools.valamodifiedlibbirdfont/ExportTool.valamodifiedlibbirdfont/Path.valamodifiedlibbirdfont/SvgParser.vala
Diff
@@ -184,6 +184,14 @@ public class BackgroundTools : ToolCollection { } }); + fc.add_extension ("png");+ fc.add_extension ("jpeg");+ fc.add_extension ("jpg");+ fc.add_extension ("gif");+ fc.add_extension ("tiff");+ fc.add_extension ("bmp");+ fc.add_extension ("svg");+ MainWindow.file_chooser (t_("Open"), fc, FileChooser.LOAD); } @@ -190,6 +190,7 @@ public class ExportTool : GLib.Object { } }); + fc.add_extension ("svg"); MainWindow.file_chooser (t_("Save"), fc, FileChooser.SAVE); } @@ -1538,7 +1538,7 @@ public class Path : GLib.Object { return true; } - warning (@"Mixed point types in segment $(start.x),$(start.y) to $(stop.x),$(stop.y) right: $(right), left: $(left) (start: $(start.type), stop: $(stop.type))");+ // warning (@"Mixed point types in segment $(start.x),$(start.y) to $(stop.x),$(stop.y) right: $(right), left: $(left) (start: $(start.type), stop: $(stop.type))"); return all_of_quadratic_curve (start.x, start.y, start.get_right_handle ().x, start.get_right_handle ().x, stop.x, stop.y, iter, steps); } @@ -1561,7 +1561,7 @@ public class Path : GLib.Object { x = bezier_path (step, start.x, start.get_right_handle ().x, stop.get_left_handle ().x, stop.x); y = bezier_path (step, start.y, start.get_right_handle ().y, stop.get_left_handle ().y, stop.y); } else {- warning (@"Mixed point types in segment $(start.x),$(start.y) to $(stop.x),$(stop.y) right: $(right), left: $(left) (start: $(start.type), stop: $(stop.type))");+ // warning (@"Mixed point types in segment $(start.x),$(start.y) to $(stop.x),$(stop.y) right: $(right), left: $(left) (start: $(start.type), stop: $(stop.type))"); x = bezier_path (step, start.x, start.get_right_handle ().x, stop.get_left_handle ().x, stop.x); y = bezier_path (step, start.y, start.get_right_handle ().y, stop.get_left_handle ().y, stop.y); }@@ -1790,7 +1790,7 @@ public class Path : GLib.Object { bezier_vector (step, start.x, start.get_right_handle ().x, stop.get_left_handle ().x, stop.x, out x1, out x2); bezier_vector (step, start.y, start.get_right_handle ().y, stop.get_left_handle ().y, stop.y, out y1, out y2); } else {- warning (@"Mixed point types in segment $(start.x),$(start.y) to $(stop.x),$(stop.y) right: $(right), left: $(left) (start: $(start.type), stop: $(stop.type))");+ // warning (@"Mixed point types in segment $(start.x),$(start.y) to $(stop.x),$(stop.y) right: $(right), left: $(left) (start: $(start.type), stop: $(stop.type))"); bezier_vector (step, start.x, start.get_right_handle ().x, stop.get_left_handle ().x, stop.x, out x1, out x2); bezier_vector (step, start.y, start.get_right_handle ().y, stop.get_left_handle ().y, stop.y, out y1, out y2); }@@ -47,6 +47,7 @@ public class SvgParser { import_svg (path); }); + fc.add_extension ("svg"); MainWindow.file_chooser (t_("Import"), fc, FileChooser.LOAD); }