The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Make sure joined paths have more than one point

These changes was commited to the Birdfont repository Wed, 23 Dec 2015 10:28:05 +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>
Wed, 23 Dec 2015 10:28:05 +0000 (11:28 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Wed, 23 Dec 2015 10:28:05 +0000 (11:28 +0100)
commit a2d534244ae3ec3060d5d02ce0ce703550265503
tree b9d7aece29b9f3366ba3afa740b4a3bf026b8c38
parent 963651143bda3ec28da58658da2dfef6137cdb32
Make sure joined paths have more than one point

libbirdfont/PenTool.vala
--- a/libbirdfont/PenTool.vala +++ b/libbirdfont/PenTool.vala @@ -1447,8 +1447,7 @@ } // join path with it self - if (is_close_to_point (path.points.get (0), px, py)) { - + if (is_close_to_point (path.points.get (0), px, py) && path.points.size > 2) { close_path (path); glyph.close_path (); force_direction ();