Clone in a terminal:
Commit 7820cb3
Johan Mattsson - 2017-08-15T13:39:51+00:00
7820cb31f341dabd0a73088027a6393b7d40e5a6johan.mattsson.m@gmail.com

Fix zero length handles in Beziér tool

Changed files (1)

Diff

diff --git a/libbirdfont/BezierTool.vala b/libbirdfont/BezierTool.valaindex f52632f..9ec0e57 100644--- a/libbirdfont/BezierTool.vala+++ b/libbirdfont/BezierTool.vala@@ -309,9 +309,12 @@ public class BezierTool : Tool { 		EditPoint first, last; 		 		first = current_path.get_first_point ();-		++		first.tie_handles = false;+		first.reflective_point = false;+ 		if (first.get_left_handle ().length == 0) {-			first.get_left_handle ().convert_to_line ();+			first.get_left_handle ().length = 0.001; 		} 				 		if (first.get_right_handle ().length == 0) {@@ -319,9 +322,12 @@ public class BezierTool : Tool { 		} 		 		last = current_path.get_last_point ();-		++		last.tie_handles = false;+		last.reflective_point = false;+ 		if (last.get_left_handle ().length == 0) {-			last.get_left_handle ().convert_to_line ();+			last.get_left_handle ().length = 0.001; 		} 		 		if (last.get_right_handle ().length == 0) {

Contact

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