From d1f10c6f2d238b6a14b4c6027cc25a657f932cd7 Mon Sep 17 00:00:00 2001 From: dvlierop2 Date: Wed, 29 Aug 2007 20:01:14 +0000 Subject: [PATCH] Don't snap node handles to the parent path, plus a small string change --- src/nodepath.cpp | 4 ++-- src/ui/dialog/document-properties.cpp | 2 +- 2 files changed, 3 insertions(+), 3 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); diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index b62248cc3..141a0c8cb 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -301,7 +301,7 @@ DocumentProperties::build_snap() "guidetolerance", _wr); //Some other options - _rcbic.init (_("_Include the object's center"), + _rcbic.init (_("_Include the object's rotation center"), _("Also snap the rotation center of an object when snapping nodes or guides"), "inkscape:snap-center", _wr); //Applies to both nodes and guides, but not to bboxes, that's why its located here -- 2.30.2