summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-08-29 20:01:14 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-08-29 20:01:14 +0000
commit779c9590cb38859f5e7b770e223aea771ccea7a7 (patch)
treed15e3c0e40932ebacc70308497e9220f4185eb4b /src/nodepath.cpp
parenttidy up (diff)
downloadinkscape-779c9590cb38859f5e7b770e223aea771ccea7a7.tar.gz
inkscape-779c9590cb38859f5e7b770e223aea771ccea7a7.zip
Don't snap node handles to the parent path, plus a small string change
(bzr r3612)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index 29a6f94cf..09c030aec 100644
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
@@ -3455,9 +3455,9 @@ static gboolean node_handle_request(SPKnot *knot, NR::Point *p, guint state, gpo
NR::Coord const scal = dot(delta, ndelta) / linelen;
(*p) = n->pos + (scal / linelen) * ndelta;
}
- *p = m.constrainedSnap(Inkscape::Snapper::SNAPPOINT_NODE, *p, Inkscape::Snapper::ConstraintLine(*p, ndelta), NULL).getPoint();
+ *p = m.constrainedSnap(Inkscape::Snapper::SNAPPOINT_NODE, *p, Inkscape::Snapper::ConstraintLine(*p, ndelta), SP_ITEM(n->subpath->nodepath->object)).getPoint();
} else {
- *p = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE, *p, NULL).getPoint();
+ *p = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE, *p, SP_ITEM(n->subpath->nodepath->object)).getPoint();
}
sp_node_adjust_handle(n, -which);