Clone in a terminal:
Commit 99c844d
Johan Mattsson - 2015-12-28T15:42:59+00:00
99c844d4721d46ecf44183a04a970c57f0cae603johan.mattsson.m@gmail.com

Set handle position in freehand tool

Changed files (1)

Diff

diff --git a/libbirdfont/TrackTool.vala b/libbirdfont/TrackTool.valaindex 59595c4..03baa4e 100644--- a/libbirdfont/TrackTool.vala+++ b/libbirdfont/TrackTool.vala@@ -411,7 +411,7 @@ public class TrackTool : Tool { 		 		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 @@ public class TrackTool : Tool { 		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 ());

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112