From b48fe105c4c31afccf9f3bb85b01ab57d2662a4d Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Thu, 4 Feb 2010 22:53:33 +0100 Subject: [PATCH] Don't discard first point in pencil's freehand mode, and add a missing return statement --- src/pencil-context.cpp | 1 + src/shape-editor.cpp | 1 + 2 files changed, 2 insertions(+) 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; } /* -- 2.30.2