summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2009-08-13 15:54:17 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2009-08-13 15:54:17 +0000
commit988f9269e7bea39f6216936a350332fec9df5de8 (patch)
tree5c91827919f0ae289c28ca473412498acbad6098 /src/nodepath.cpp
parentSlovenian and Japanese translation update for 0.47 (diff)
downloadinkscape-988f9269e7bea39f6216936a350332fec9df5de8.tar.gz
inkscape-988f9269e7bea39f6216936a350332fec9df5de8.zip
fix pulling out second handle when the segment was a lineto
(bzr r8479)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp2
1 files changed, 2 insertions, 0 deletions
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