The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 13 Aug 2015 11:31:25 +0000 (13:31 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 13 Aug 2015 11:31:25 +0000 (13:31 +0200)
commit 51964e15bf43d789f751dbac11ccaee61d079245
tree 0b096b44a45795688ae64d0f22a0d2430ff3fd03
parent 9541e348dc97627950c3da0e8ec28d6d9ddcd4f3
Copy path before merging overlap

libbirdfont/StrokeTool.vala
--- 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);