From 8e980bd257a274f7f32aca2e05f2a694675cf4ef Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Wed, 30 Apr 2008 07:32:12 +0000 Subject: - Major refactoring of snapping related code... - Enabling snap indicator for all remaining tools (bzr r5556) --- src/connector-context.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/connector-context.cpp') diff --git a/src/connector-context.cpp b/src/connector-context.cpp index 6da465f2a..d311cfabd 100644 --- a/src/connector-context.cpp +++ b/src/connector-context.cpp @@ -530,9 +530,9 @@ connector_handle_button_press(SPConnectorContext *const cc, GdkEventButton const if (!cc->sid) { // This is the first point, so just snap it to the grid // as there's no other points to go off. - SnapManager const &m = cc->desktop->namedview->snap_manager; - p = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE, - p, NULL).getPoint(); + SnapManager &m = cc->desktop->namedview->snap_manager; + m.setup(cc->desktop); + p = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE, p).getPoint(); } spcc_connector_set_initial_point(cc, p); -- cgit v1.2.3