The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix stroke ends

These changes was commited to the Birdfont repository Mon, 05 Oct 2015 11:51:01 +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>
Mon, 05 Oct 2015 11:51:01 +0000 (13:51 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 05 Oct 2015 11:51:01 +0000 (13:51 +0200)
commit 1d97f93822c5d4ffd49a5af13efc82fd5aa553f9
tree ef670e3f1839e08035f44ac377b3733faac5571c
parent 2430dc5c3e56f2bb655994732f8dc7bd80685573
Fix stroke ends

libbirdfont/StrokeTool.vala
--- a/libbirdfont/StrokeTool.vala +++ b/libbirdfont/StrokeTool.vala @@ -1046,7 +1046,7 @@ double left = first.get_left_handle ().angle; double right = first.get_right_handle ().angle; - if (fabs (right - left) < 0.001) { + if (fabs (right - left) % (2 * PI) < 0.01) { first.get_left_handle ().convert_to_line (); first.recalculate_linear_handles (); }