From fcf0c0d5effa07885b4358c34c69c4f118aa8042 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Fri, 16 Mar 2007 21:26:53 +0000 Subject: Fix bug #1511262: don't snap rect to itself (bzr r2675) --- src/rect-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rect-context.cpp') diff --git a/src/rect-context.cpp b/src/rect-context.cpp index 8482cd042..b6c331538 100644 --- a/src/rect-context.cpp +++ b/src/rect-context.cpp @@ -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::BBOX_POINT | Inkscape::Snapper::SNAP_POINT, motion_dt, NULL).getPoint(); + motion_dt = m.freeSnap(Inkscape::Snapper::BBOX_POINT | Inkscape::Snapper::SNAP_POINT, motion_dt, rc->item).getPoint(); sp_rect_drag(*rc, motion_dt, event->motion.state); -- cgit v1.2.3