summaryrefslogtreecommitdiffstats
path: root/src/rect-context.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2008-05-18 20:01:38 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2008-05-18 20:01:38 +0000
commitbc3837b9d1e51bee748f79275c21de1ac86d482e (patch)
tree19afa256880aaadf8dd86547a2c7ed83b4e6f7e9 /src/rect-context.cpp
parentConvenience access functions for first and last value of a Geom::Piecewise<> (diff)
downloadinkscape-bc3837b9d1e51bee748f79275c21de1ac86d482e.tar.gz
inkscape-bc3837b9d1e51bee748f79275c21de1ac86d482e.zip
Eliminate some redundant snapping calls
(bzr r5693)
Diffstat (limited to 'src/rect-context.cpp')
-rw-r--r--src/rect-context.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/rect-context.cpp b/src/rect-context.cpp
index 3ecd89113..d1e5fe381 100644
--- a/src/rect-context.cpp
+++ b/src/rect-context.cpp
@@ -328,14 +328,9 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent
// motion notify coordinates as given (no snapping back to origin)
event_context->within_tolerance = false;
- NR::Point const motion_w(event->motion.x,
- event->motion.y);
+ NR::Point const motion_w(event->motion.x, event->motion.y);
NR::Point motion_dt(desktop->w2d(motion_w));
- //SnapManager &m = desktop->namedview->snap_manager;
- //m.setup(desktop, rc->item);
- //m.freeSnapReturnByRef(Inkscape::Snapper::SNAPPOINT_NODE, motion_dt);
-
sp_rect_drag(*rc, motion_dt, event->motion.state); // this will also handle the snapping
gobble_motion_events(GDK_BUTTON1_MASK);
ret = TRUE;