summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2008-11-26 19:55:59 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2008-11-26 19:55:59 +0000
commit0d8ddffc383ab6e3448498b2867a20a713b5cf25 (patch)
tree6f3faa43474eb23e3173b4ec0b91f2875629f4a6 /src/nodepath.cpp
parentDefined HAVE_OPENMP in build.xml and included config.h from nr-filter-gaussia... (diff)
downloadinkscape-0d8ddffc383ab6e3448498b2867a20a713b5cf25.tar.gz
inkscape-0d8ddffc383ab6e3448498b2867a20a713b5cf25.zip
When snapping only the closest node, draw an indicator at that node
(bzr r6903)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index 7165dab98..5a13588ab 100644
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
@@ -1404,9 +1404,9 @@ static void sp_nodepath_selected_nodes_move(Inkscape::NodePath::Path *nodepath,
}
if (best.getSnapped()) {
- nodepath->desktop->snapindicator->set_new_snappoint(best);
+ nodepath->desktop->snapindicator->set_new_snaptarget(best);
} else {
- nodepath->desktop->snapindicator->remove_snappoint();
+ nodepath->desktop->snapindicator->remove_snaptarget();
}
}
@@ -3649,7 +3649,7 @@ node_request(SPKnot */*knot*/, Geom::Point const &p, guint state, gpointer data)
Inkscape::NodePath::Node *n = (Inkscape::NodePath::Node *) data;
- n->subpath->nodepath->desktop->snapindicator->remove_snappoint();
+ n->subpath->nodepath->desktop->snapindicator->remove_snaptarget();
// If either (Shift and some handle retracted), or (we're already dragging out a handle)
if ( (!n->subpath->nodepath->straight_path) &&
@@ -3936,7 +3936,7 @@ static gboolean node_handle_request(SPKnot *knot, Geom::Point const &p, guint st
if ((state & GDK_SHIFT_MASK) != 0) {
// We will not try to snap when the shift-key is pressed
// so remove the old snap indicator and don't wait for it to time-out
- desktop->snapindicator->remove_snappoint();
+ desktop->snapindicator->remove_snaptarget();
}
Inkscape::NodePath::Node *othernode = opposite->other;