Commit 514d8c9
Convert stroke to regular path before merging
Changed files (2)
Diff
@@ -36,14 +36,6 @@ public class OtfTags : GLib.Object { return tags; }- - public string to_string () {- StringBuilder sb = new StringBuilder ();- foreach (string s in elements) {- sb.append (s);- }- return sb.str;- } } }@@ -121,11 +121,18 @@ public class StrokeTool : Tool { PathList new_paths = new PathList (); g.store_undo_state ();- + foreach (Path p in g.active_paths) {+ if (p.stroke == 0) {+ o.add (p);+ } else {+ o.append (p.get_stroke ());+ }+ }+ + foreach (Path p in o.paths) { p.close (); p.remove_points_on_points ();- o.add (p); } o = remove_overlap (o);