The Birdfont Source Code
Copy path before merging overlap
These changes was commited to the Birdfont repository Thu, 13 Aug 2015 11:31:25 +0000.
Contributing
Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
Copy path before merging overlap
--- a/libbirdfont/StrokeTool.vala
+++ b/libbirdfont/StrokeTool.vala
@@ -425,7 +425,7 @@
return r;
}
- static PathList remove_self_intersections (Path path) {
+ static PathList remove_self_intersections (Path original) {
Path merged = new Path ();
IntersectionList intersections = new IntersectionList ();
EditPoint ep1, ep2, found;
@@ -435,6 +435,7 @@
bool found_intersection;
PathList parts;
int i = 0;
+ Path path = original.copy ();
// FIXME: DELETE
((!) BirdFont.get_current_font ().get_glyph_by_name ("f")).add_path (path);