Code

Don't discard first point in pencil's freehand mode, and add a missing return statement
authorDiederik van Lierop <mailat-signdiedenrezidotnl>
Thu, 4 Feb 2010 21:53:33 +0000 (22:53 +0100)
committerDiederik van Lierop <mailat-signdiedenrezidotnl>
Thu, 4 Feb 2010 21:53:33 +0000 (22:53 +0100)
src/pencil-context.cpp
src/shape-editor.cpp

index 5aa9efbd91f7add0250a9bc6c6bf9e95d86201a0..328c011ff9fb24b4d4dfccff7bdfce0b3b72251a 100644 (file)
@@ -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);
     }
 }
 
index e3b6d65c284e66b8a5b300743eb863cf868297fc..1962b710ca1ad6accb7a02ad6611ad1228361b8b 100644 (file)
@@ -234,6 +234,7 @@ bool ShapeEditor::knot_mouseover()
     if (this->knotholder) {
         return knotholder->knot_mouseover();
     }
+    return false;
 }
 
 /*