The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Draw quadratc paths with Beziér tool

Changes made to libbirdfont/PenTool.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/PenTool.vala +++ libbirdfont/PenTool.vala @@ -1263,13 +1263,17 @@ if (union.get_last_point ().get_left_handle ().is_curve ()) { first_point.get_left_handle ().convert_to_curve (); } else { - first_point.get_left_handle ().convert_to_line (); + if (first_point.type != PointType.QUADRATIC) { + first_point.get_left_handle ().convert_to_line (); + } + } + + if (first_point.type != PointType.QUADRATIC) { + first_point.get_left_handle ().move_to_coordinate_internal ( + union.get_last_point ().get_left_handle ().x, + union.get_last_point ().get_left_handle ().y); } - first_point.get_left_handle ().move_to_coordinate_internal ( - union.get_last_point ().get_left_handle ().x, - union.get_last_point ().get_left_handle ().y); - union.delete_last_point (); union.append_path (merge);