summaryrefslogtreecommitdiffstats
path: root/src/rect-context.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-03-16 21:26:53 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-03-16 21:26:53 +0000
commitfcf0c0d5effa07885b4358c34c69c4f118aa8042 (patch)
tree74f7a2864cdebdddbbac0a55077badb360a30a51 /src/rect-context.cpp
parentfix 1679477 (diff)
downloadinkscape-fcf0c0d5effa07885b4358c34c69c4f118aa8042.tar.gz
inkscape-fcf0c0d5effa07885b4358c34c69c4f118aa8042.zip
Fix bug #1511262: don't snap rect to itself
(bzr r2675)
Diffstat (limited to 'src/rect-context.cpp')
-rw-r--r--src/rect-context.cpp2
1 files changed, 1 insertions, 1 deletions
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);