The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Set handle position in freehand tool

These changes was commited to the Birdfont repository Mon, 28 Dec 2015 15:42:59 +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, 28 Dec 2015 15:42:59 +0000]

Updated Files

libbirdfont/TrackTool.vala
--- a/libbirdfont/TrackTool.vala +++ b/libbirdfont/TrackTool.vala @@ -411,7 +411,7 @@ Object o = glyph.active_paths.get (glyph.active_paths.size - 1); - if (o is FastPath) { + if (unlikely (!(o is FastPath))) { warning ("Object is not a path"); return; } @@ -424,7 +424,8 @@ added_points++; PenTool.convert_point_to_line (new_point, false); - new_point.set_point_type (PointType.HIDDEN); + new_point.set_point_type (PointType.HIDDEN); + p.recalculate_linear_handles_for_point (new_point); if (p.points.size > 1) { glyph.redraw_segment (new_point, new_point.get_prev ());