Clone in a terminal:
Commit 31d581a
Johan Mattsson - 2016-10-01T07:30:01+00:00
31d581a15e3095bdbf42c4691dde69280bd9a0b8johan.mattsson.m@gmail.com

Fix symmetrical handles

Changed files (2)

Diff

diff --git a/libbirdfont/EditPoint.vala b/libbirdfont/EditPoint.valaindex 4a41cb8..f8bcca7 100644--- a/libbirdfont/EditPoint.vala+++ b/libbirdfont/EditPoint.vala@@ -219,6 +219,12 @@ public class EditPoint : GLib.Object { 	/** Make handles symmetrical. */ 	public void set_reflective_handles (bool symmetrical) { 		reflective_point = symmetrical;+		+		if (symmetrical) {+			get_left_handle ().convert_to_curve ();+			get_right_handle ().convert_to_curve ();+			process_tied_handle ();+		} 	}  	/** Flip handles if next point on path is in the other direction. @@ -288,7 +294,6 @@ public class EditPoint : GLib.Object { 		} 	} -	/** This can only be performed if the path has been closed. */ 	public void process_tied_handle ()  	requires (next != null && prev != null) { 		double a, b, c, length, angle;diff --git a/libbirdfont/PenTool.vala b/libbirdfont/PenTool.valaindex 2c2c5e7..36acc33 100644--- a/libbirdfont/PenTool.vala+++ b/libbirdfont/PenTool.vala@@ -1240,7 +1240,7 @@ public class PenTool : Tool { 				} 				 				// alt+click creates a point with symmetrical handles-				if (KeyBindings.has_alt () || KeyBindings.has_ctrl ()) {+				if (KeyBindings.has_alt () || KeyBindings.has_ctrl ()) {							 					selected_point.set_reflective_handles (true); 					selected_point.get_right_handle ().process_symmetrical_handle (); 					GlyphCanvas.redraw ();

Contact

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