Clone in a terminal:
Commit 091ef7e
Johan Mattsson - 2015-06-13T09:48:22+00:00
091ef7e95f89e29011cda7827627c35af65e19a1johan.mattsson.m@gmail.com

Boundaries for paths with a single point

Changed files (3)

Diff

diff --git a/libbirdfont/ColorPicker.vala b/libbirdfont/ColorPicker.valaindex dade593..060e53f 100644--- a/libbirdfont/ColorPicker.vala+++ b/libbirdfont/ColorPicker.vala@@ -34,8 +34,8 @@ public class ColorPicker : Tool { 	public bool has_stroke_color = false; 	bool stroke_selected = false; 	-	Color stroke_color = new Color (0, 0, 0, 1);-	Color fill_color = new Color (0, 0, 0, 1);+	public Color stroke_color = new Color (0, 0, 0, 1);+	public Color fill_color = new Color (0, 0, 0, 1); 	 	public ColorPicker (string tooltip = "") { 		base (null, tooltip);diff --git a/libbirdfont/DrawingTools.vala b/libbirdfont/DrawingTools.valaindex ad26a63..b91066a 100644--- a/libbirdfont/DrawingTools.vala+++ b/libbirdfont/DrawingTools.vala@@ -43,7 +43,7 @@ public class DrawingTools : ToolCollection  { 	public static SpinButton object_stroke; 	Tool outline; 	-	public static MoveTool move_tool;+	public static MoveTool move_tool { get; set; } 	public static PenTool pen_tool;  	public static BezierTool bezier_tool;diff --git a/libbirdfont/Path.vala b/libbirdfont/Path.valaindex 721a1e5..8635ca8 100644--- a/libbirdfont/Path.vala+++ b/libbirdfont/Path.vala@@ -1090,6 +1090,14 @@ public class Path { 				}); 			} 		}+		+		if (points.size == 1) {+			EditPoint e = points.get (0);+			xmax = e.x;+			xmin = e.x;+			ymax = e.y;+			ymin = e.y;+		} 	} 		 	/** Test if @param path is a valid outline for this object. */	

Contact

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