summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 99f5db5)
raw | patch | inline | side by side (parent: 99f5db5)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 24 Feb 2007 21:29:58 +0000 (21:29 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 24 Feb 2007 21:29:58 +0000 (21:29 +0000) |
src/rect-context.cpp | patch | blob | history |
diff --git a/src/rect-context.cpp b/src/rect-context.cpp
index 82eef51e7de99930be87134e91cb632044778df6..8482cd0424432841731556f86218f4f275051f48 100644 (file)
--- a/src/rect-context.cpp
+++ b/src/rect-context.cpp
@@ -327,8 +327,13 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent
NR::Point const motion_w(event->motion.x,
event->motion.y);
- NR::Point const motion_dt(desktop->w2d(motion_w));
+ 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();
+
sp_rect_drag(*rc, motion_dt, event->motion.state);
+
ret = TRUE;
}
break;