Commit 091ef7e
Boundaries for paths with a single point
Changed files (3)
modifiedlibbirdfont/ColorPicker.valamodifiedlibbirdfont/DrawingTools.valamodifiedlibbirdfont/Path.vala
Diff
@@ -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);@@ -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;@@ -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. */