The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – 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
[Mon, 14 Aug 2017 17:34:13 +0000]

Updated Files

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