The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – 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
[Mon, 05 Oct 2015 11:51:01 +0000]

Updated Files

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 (); }