The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Convert segment to line in Beziér tool

These changes was commited to the Birdfont repository Mon, 14 Aug 2017 17:34:13 +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, 14 Aug 2017 17:34:13 +0000 (19:34 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 14 Aug 2017 19:27:35 +0000 (21:27 +0200)
commit 8cc9fd91233c56e8e293b5fbd1f61a4afbe126ec
tree ffe1d55846cfab9842daff765f5e635896b99d57
parent d4c3734f04f01afc596155f00e178fa1edf152fb
Convert segment to line in Beziér tool

libbirdfont/BezierTool.vala
libbirdfont/EditPointHandle.vala
scripts/version.py
--- a/libbirdfont/BezierTool.vala +++ b/libbirdfont/BezierTool.vala @@ -309,13 +309,23 @@ EditPoint first, last; first = current_path.get_first_point (); + + if (first.get_left_handle ().length == 0) { + first.get_left_handle ().convert_to_line (); + } + if (first.get_right_handle ().length == 0) { - first.convert_to_line (); + first.get_right_handle ().convert_to_line (); } - + last = current_path.get_last_point (); + if (last.get_left_handle ().length == 0) { - last.convert_to_line (); + last.get_left_handle ().convert_to_line (); + } + + if (last.get_right_handle ().length == 0) { + last.get_right_handle ().convert_to_line (); } }
--- a/libbirdfont/EditPointHandle.vala +++ b/libbirdfont/EditPointHandle.vala @@ -150,6 +150,9 @@ } public void convert_to_line () { + parent.tie_handles = false; + parent.reflective_point = false; + switch (type) { case PointType.QUADRATIC: type = PointType.LINE_QUADRATIC;
--- a/scripts/version.py +++ b/scripts/version.py @@ -13,7 +13,7 @@ Lesser General Public License for more details. """ - VERSION = '2.19.2' + VERSION = '2.19.3' SO_VERSION_MAJOR = '36' SO_VERSION_MINOR = '0' SO_VERSION = SO_VERSION_MAJOR + '.' + SO_VERSION_MINOR