Code

Don't discard first point in pencil's freehand mode, and add a missing return statement
[inkscape.git] / src / pencil-context.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);
     }
 }