From 475d4308e550ba8ae8135855350a66064ada2f89 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Thu, 13 Aug 2009 15:54:17 +0000 Subject: [PATCH] fix pulling out second handle when the segment was a lineto --- src/nodepath.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nodepath.cpp b/src/nodepath.cpp index f9a615583..74d0758a7 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -1219,6 +1219,7 @@ void sp_nodepath_convert_node_type(Inkscape::NodePath::Node *node, Inkscape::Nod Radial handle (node->pos - node->p.pos); if (fabs(line.a - handle.a) < 1e-3) { // lined up // already half-smooth; pull opposite handle too making it fully smooth + node->n.other->code = NR_CURVETO; node->n.pos = node->pos + (node->n.other->pos - node->pos) / 3; } else { // do nothing, adjust_handles will line the handle up, producing a half-smooth node @@ -1228,6 +1229,7 @@ void sp_nodepath_convert_node_type(Inkscape::NodePath::Node *node, Inkscape::Nod Radial handle (node->pos - node->n.pos); if (fabs(line.a - handle.a) < 1e-3) { // lined up // already half-smooth; pull opposite handle too making it fully smooth + node->code = NR_CURVETO; node->p.pos = node->pos + (node->p.other->pos - node->pos) / 3; } else { // do nothing, adjust_handles will line the handle up, producing a half-smooth node -- 2.30.2