From: buliabyak Date: Thu, 13 Aug 2009 15:54:17 +0000 (+0000) Subject: fix pulling out second handle when the segment was a lineto X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=475d4308e550ba8ae8135855350a66064ada2f89;p=inkscape.git fix pulling out second handle when the segment was a lineto --- 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