Clone in a terminal:
Commit 870ce5c
Johan Mattsson - 2012-09-19T09:32:30+00:00
870ce5c39720189b92f2d2471c16879a29194ae5johan.mattsson.m@gmail.com

remove outline stroke for filled paths

Changed files (2)

Diff

diff --git a/src/OverView.vala b/src/OverView.valaindex f17c547..48a57d1 100644--- a/src/OverView.vala+++ b/src/OverView.vala@@ -85,8 +85,17 @@ class OverView : FontDisplay { 				 				MainWindow.get_glyph_canvas ().set_current_glyph (g); 				+				g.close_path (); 				g.default_zoom (); 				z.store_current_view ();++				g.clear_active_paths ();++				foreach (Path p in g.path_list) {+					p.set_color (0, 0, 0, 1);+					p.set_selected (false);+				}+			 			} 		}); 		diff --git a/src/Path.vala b/src/Path.valaindex 5a81b86..1411ca6 100644--- a/src/Path.vala+++ b/src/Path.vala@@ -100,18 +100,20 @@ class Path { 		cr.new_path (); 					 		// draw lines-		foreach (EditPoint e in ep) {-			if (n != null) {-				en = (!) n;-				draw_next (e, en, cr);+		if (is_editable ()) {+			foreach (EditPoint e in ep) {+				if (n != null) {+					en = (!) n;+					draw_next (e, en, cr);+				}+				+				n = e; 			}-			-			n = e; 		} 		 		// close path-		if (!is_open () && ep.length () >= 2) {-			en = (!)n;+		if (!is_open () && ep.length () >= 2 && n != null) {+			en = (!) n; 			em = ep.first ().data; 			 			draw_next (em, en, cr);

Contact

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