The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Convert segment to line in Beziér tool

Changes made to libbirdfont/BezierTool.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/BezierTool.vala +++ 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 (); } }