From 3293e7938efa47129895c91ba422c268edf74f90 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 8 Jan 2007 09:26:30 +0000 Subject: [PATCH] fix 1517414 --- src/nodepath.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nodepath.cpp b/src/nodepath.cpp index be0a2eb1e..a224f81a5 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -2219,7 +2219,10 @@ sp_node_selected_delete_segment(void) //Copy everything after 'end' to a new subpath Inkscape::NodePath::SubPath *t = sp_nodepath_subpath_new(nodepath); for (curr=end ; curr ; curr=curr->n.other) { - sp_nodepath_node_new(t, NULL, (Inkscape::NodePath::NodeType)curr->type, (NRPathcode)curr->code, + NRPathcode code = (NRPathcode) curr->code; + if (curr == end) + code = NR_MOVETO; + sp_nodepath_node_new(t, NULL, (Inkscape::NodePath::NodeType)curr->type, code, &curr->p.pos, &curr->pos, &curr->n.pos); } -- 2.30.2