diff options
| author | bulia byak <buliabyak@gmail.com> | 2009-08-23 00:21:12 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2009-08-23 00:21:12 +0000 |
| commit | f095e3d40934d8fd36c36c7062955f4ad819cb4b (patch) | |
| tree | afdc8931129672abb4ab97d641c01b43e417d031 /src/nodepath.cpp | |
| parent | fix rendering of testcase errorhandling-nosuchlpe.svg: make sure shapes do no... (diff) | |
| download | inkscape-f095e3d40934d8fd36c36c7062955f4ad819cb4b.tar.gz inkscape-f095e3d40934d8fd36c36c7062955f4ad819cb4b.zip | |
fix half-smooth nodes updating when next to a line but with curve code
(bzr r8521)
Diffstat (limited to 'src/nodepath.cpp')
| -rw-r--r-- | src/nodepath.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp index 29a04c92b..8f17ae013 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -1215,8 +1215,6 @@ void sp_nodepath_convert_node_type(Inkscape::NodePath::Node *node, Inkscape::Nod bool p_is_line = sp_node_side_is_line(node, &node->p); bool n_is_line = sp_node_side_is_line(node, &node->n); -#define NODE_HAS_P_HANDLE(node) ((Geom::L2(node->pos - node->p.pos) > 1e-6)) -#define NODE_HAS_N_HANDLE(node) ((Geom::L2(node->pos - node->n.pos) > 1e-6)) #define NODE_HAS_BOTH_HANDLES(node) ((Geom::L2(node->pos - node->n.pos) > 1e-6) && (Geom::L2(node->pos - node->p.pos) > 1e-6)) if (p_has_handle && n_has_handle) { @@ -1319,7 +1317,7 @@ void sp_node_moveto(Inkscape::NodePath::Node *node, Geom::Point p) Inkscape::NodePath::Node *node_n = NULL; if (node->p.other) { - if (node->code == NR_LINETO) { + if (sp_node_side_is_line(node, &node->p)) { sp_node_adjust_handle(node, 1); sp_node_adjust_handle(node->p.other, -1); node_p = node->p.other; @@ -1330,7 +1328,7 @@ void sp_node_moveto(Inkscape::NodePath::Node *node, Geom::Point p) } } if (node->n.other) { - if (node->n.other->code == NR_LINETO) { + if (sp_node_side_is_line(node, &node->n)) { sp_node_adjust_handle(node, -1); sp_node_adjust_handle(node->n.other, 1); node_n = node->n.other; |
