Clone in a terminal:
Commit 7b155cd
Johan Mattsson - 2016-01-21T20:44:07+00:00
7b155cd4bea52abf8666c3c34c3f5ff964ec6a3fjohan.mattsson.m@gmail.com

Fix points on points removal in SVG import

Changed files (2)

Diff

diff --git a/libbirdfont/Path.vala b/libbirdfont/Path.valaindex c5fdcc2..26e8c23 100644--- a/libbirdfont/Path.vala+++ b/libbirdfont/Path.vala@@ -1,5 +1,5 @@ /*-	Copyright (C) 2012 2013 2014 2015 Johan Mattsson+	Copyright (C) 2012 - 2016 Johan Mattsson  	This library is free software; you can redistribute it and/or modify  	it under the terms of the GNU Lesser General Public License as @@ -2313,10 +2313,11 @@ public class Path : GLib.Object { 		if (points.size == 0) { 			return; 		}-+		 		for (int i = 0; i < points.size + 1; i++) { 			EditPoint ep = points.get (i % points.size);-			if (ep.get_right_handle ().length < t3+			if ((ep.flags & EditPoint.STROKE_OFFSET) > 0+				&& ep.get_right_handle ().length < t3 				&& ep.get_left_handle ().length < t3 				&& !is_endpoint (ep) 				&& (ep.flags & EditPoint.CURVE_KEEP) == 0diff --git a/libbirdfont/SvgParser.vala b/libbirdfont/SvgParser.valaindex 1d20d41..b88b642 100644--- a/libbirdfont/SvgParser.vala+++ b/libbirdfont/SvgParser.vala@@ -1,5 +1,5 @@ /*-	Copyright (C) 2012 2013 2014 2015 Johan Mattsson+	Copyright (C) 2012 - 2016 Johan Mattsson  	This library is free software; you can redistribute it and/or modify  	it under the terms of the GNU Lesser General Public License as 

Contact

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