diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-04-02 07:25:01 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-04-02 07:25:01 +0000 |
| commit | 99a5c734a1310a9dcdcf202a163d99273aee5806 (patch) | |
| tree | 0677560d458b9f0f1323b49d307d9c655a0e6edc /src/nodepath.cpp | |
| parent | fix 1243587 and misc fixes (diff) | |
| download | inkscape-99a5c734a1310a9dcdcf202a163d99273aee5806.tar.gz inkscape-99a5c734a1310a9dcdcf202a163d99273aee5806.zip | |
fix 1472297
(bzr r2811)
Diffstat (limited to 'src/nodepath.cpp')
| -rw-r--r-- | src/nodepath.cpp | 12 |
1 files 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; |
