diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-01-08 09:26:30 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-01-08 09:26:30 +0000 |
| commit | 4ef922f971d6a5a1ffcfd44354d43e198c132e53 (patch) | |
| tree | af24c2c3d3ab230f0513c3d9765b8b4456f40af0 /src | |
| parent | fix 1630193 (diff) | |
| download | inkscape-4ef922f971d6a5a1ffcfd44354d43e198c132e53.tar.gz inkscape-4ef922f971d6a5a1ffcfd44354d43e198c132e53.zip | |
fix 1517414
(bzr r2157)
Diffstat (limited to 'src')
| -rw-r--r-- | src/nodepath.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |
