diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index aa1480c675d4d335aa1e337876e7ae042024ecdc..6946d7df1fb8b22dc5f959937077b2d46cb1c3f3 100644 (file)
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
SPCurve *norm = sp_shape_get_curve(SP_SHAPE(item));
sp_curve_transform(norm, sp_item_i2d_affine(dc->white_item));
g_return_if_fail( norm != NULL );
- dc->white_curves = sp_curve_split(norm);
+ dc->white_curves = g_slist_reverse(sp_curve_split(norm));
sp_curve_unref(norm);
/* Anchor list */
for (GSList *l = dc->white_curves; l != NULL; l = l->next) {
SPCurve *c;
c = (SPCurve*)l->data;
g_return_if_fail( c->end > 1 );
- if ( c->bpath->code == NR_MOVETO_OPEN ) {
+ if ( SP_CURVE_BPATH(c)->code == NR_MOVETO_OPEN ) {
NArtBpath *s, *e;
SPDrawAnchor *a;
s = sp_curve_first_bpath(c);
@@ -374,7 +374,7 @@ void spdc_endpoint_snap_rotation(SPEventContext const *const ec, NR::Point &p, N
/* Snap it along best vector */
SnapManager const &m = SP_EVENT_CONTEXT_DESKTOP(ec)->namedview->snap_manager;
p = m.constrainedSnap(Inkscape::Snapper::SNAP_POINT | Inkscape::Snapper::BBOX_POINT,
- p, best, NULL).getPoint();
+ p, Inkscape::Snapper::ConstraintLine(best), NULL).getPoint();
}
}
item->updateRepr();
}
- sp_document_done(doc);
+ sp_document_done(doc, SP_IS_PEN_CONTEXT(dc)? SP_VERB_CONTEXT_PEN : SP_VERB_CONTEXT_PENCIL,
+ _("Draw path"));
}
sp_curve_unref(c);