From 122d4274f150001d17154b72178ef1b53125c66c Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Tue, 7 Aug 2007 20:05:00 +0000 Subject: Only in the selector tool we should snap in bbox mode (PointType = SNAPPOINT_BBOX) (bzr r3415) --- src/rect-context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rect-context.cpp') diff --git a/src/rect-context.cpp b/src/rect-context.cpp index 7de7aa507..71683ec8e 100644 --- a/src/rect-context.cpp +++ b/src/rect-context.cpp @@ -299,7 +299,7 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent /* Snap center */ SnapManager const &m = desktop->namedview->snap_manager; - rc->center = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE | Inkscape::Snapper::SNAPPOINT_BBOX, + rc->center = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE, button_dt, rc->item).getPoint(); sp_canvas_item_grab(SP_CANVAS_ITEM(desktop->acetate), @@ -330,7 +330,7 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent NR::Point motion_dt(desktop->w2d(motion_w)); SnapManager const &m = desktop->namedview->snap_manager; - motion_dt = m.freeSnap(Inkscape::Snapper::SNAPPOINT_BBOX | Inkscape::Snapper::SNAPPOINT_NODE, motion_dt, rc->item).getPoint(); + motion_dt = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE, motion_dt, rc->item).getPoint(); sp_rect_drag(*rc, motion_dt, event->motion.state); -- cgit v1.2.3