From: Diederik van Lierop Date: Thu, 4 Feb 2010 21:53:33 +0000 (+0100) Subject: Don't discard first point in pencil's freehand mode, and add a missing return statement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b48fe105c4c31afccf9f3bb85b01ab57d2662a4d;p=inkscape.git Don't discard first point in pencil's freehand mode, and add a missing return statement --- diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp index 5aa9efbd9..328c011ff 100644 --- a/src/pencil-context.cpp +++ b/src/pencil-context.cpp @@ -622,6 +622,7 @@ spdc_set_startpoint(SPPencilContext *const pc, Geom::Point const p) pc->red_curve_is_valid = false; if (in_svg_plane(p)) { pc->p[pc->npoints++] = p; + pc->ps.push_back(p); } } diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index e3b6d65c2..1962b710c 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -234,6 +234,7 @@ bool ShapeEditor::knot_mouseover() if (this->knotholder) { return knotholder->knot_mouseover(); } + return false; } /*