From f4f438b9ac66a63f08858a039e653ec680ca6885 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 2 Apr 2007 07:25:01 +0000 Subject: [PATCH] fix 1472297 --- src/nodepath.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/nodepath.cpp b/src/nodepath.cpp index b224c970c..1b67944d8 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -99,6 +99,8 @@ static void sp_nodepath_node_select(Inkscape::NodePath::Node *node, gboolean inc static void sp_node_set_selected(Inkscape::NodePath::Node *node, gboolean selected); +static Inkscape::NodePath::Node *sp_nodepath_set_node_type(Inkscape::NodePath::Node *node, Inkscape::NodePath::NodeType type); + /* Adjust handle placement, if the node or the other handle is moved */ static void sp_node_adjust_handle(Inkscape::NodePath::Node *node, gint which_adjust); static void sp_node_adjust_handles(Inkscape::NodePath::Node *node); @@ -840,12 +842,14 @@ static void sp_nodepath_set_line_type(Inkscape::NodePath::Node *end, NRPathcode end->code = code; if (code == NR_LINETO) { - if (start->code == NR_LINETO) start->type =Inkscape::NodePath::NODE_CUSP; + if (start->code == NR_LINETO) { + sp_nodepath_set_node_type (start, Inkscape::NodePath::NODE_CUSP); + } if (end->n.other) { - if (end->n.other->code == NR_LINETO) end->type =Inkscape::NodePath::NODE_CUSP; + if (end->n.other->code == NR_LINETO) { + sp_nodepath_set_node_type (end, Inkscape::NodePath::NODE_CUSP); + } } - sp_node_adjust_handle(start, -1); - sp_node_adjust_handle(end, 1); } else { NR::Point delta = end->pos - start->pos; start->n.pos = start->pos + delta / 3; -- 2.30.2