diff --git a/src/rect-context.cpp b/src/rect-context.cpp
index 8482cd0424432841731556f86218f4f275051f48..b6c3315384918635cfac39ade944a4493d7b04c6 100644 (file)
--- 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);