From bc3837b9d1e51bee748f79275c21de1ac86d482e Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Sun, 18 May 2008 20:01:38 +0000 Subject: Eliminate some redundant snapping calls (bzr r5693) --- src/rect-context.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/rect-context.cpp') diff --git a/src/rect-context.cpp b/src/rect-context.cpp index 3ecd89113..d1e5fe381 100644 --- a/src/rect-context.cpp +++ b/src/rect-context.cpp @@ -328,14 +328,9 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent // motion notify coordinates as given (no snapping back to origin) event_context->within_tolerance = false; - NR::Point const motion_w(event->motion.x, - event->motion.y); + NR::Point const motion_w(event->motion.x, event->motion.y); NR::Point motion_dt(desktop->w2d(motion_w)); - //SnapManager &m = desktop->namedview->snap_manager; - //m.setup(desktop, rc->item); - //m.freeSnapReturnByRef(Inkscape::Snapper::SNAPPOINT_NODE, motion_dt); - sp_rect_drag(*rc, motion_dt, event->motion.state); // this will also handle the snapping gobble_motion_events(GDK_BUTTON1_MASK); ret = TRUE; -- cgit v1.2.3