The Birdfont Source Code


All Repositories / birdfont.git / commit – 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
author Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 28 Dec 2015 15:42:59 +0000 (16:42 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Mon, 28 Dec 2015 15:42:59 +0000 (16:42 +0100)
commit 99c844d4721d46ecf44183a04a970c57f0cae603
tree ba0d77b11e2ec3cd6137225a7362c526481a9e9e
parent 1f88f3ed0cdd5688b48a7b0c4575764677de1676
Set handle position in freehand tool

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 ());