From 122d4274f150001d17154b72178ef1b53125c66c Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Tue, 7 Aug 2007 20:05:00 +0000 Subject: Only in the selector tool we should snap in bbox mode (PointType = SNAPPOINT_BBOX) (bzr r3415) --- src/draw-context.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/draw-context.cpp') diff --git a/src/draw-context.cpp b/src/draw-context.cpp index 6742ddaf3..43e028aa5 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -354,7 +354,7 @@ void spdc_endpoint_snap_rotation(SPEventContext const *const ec, NR::Point &p, N /* Snap it along best vector */ SnapManager const &m = SP_EVENT_CONTEXT_DESKTOP(ec)->namedview->snap_manager; - p = m.constrainedSnap(Inkscape::Snapper::SNAPPOINT_NODE | Inkscape::Snapper::SNAPPOINT_BBOX, + p = m.constrainedSnap(Inkscape::Snapper::SNAPPOINT_NODE, p, Inkscape::Snapper::ConstraintLine(best), NULL).getPoint(); } } @@ -367,9 +367,8 @@ void spdc_endpoint_snap_free(SPEventContext const * const ec, NR::Point& p, guin return; } - /* FIXME: this should be doing bbox snap as well */ SnapManager const &m = SP_EVENT_CONTEXT_DESKTOP(ec)->namedview->snap_manager; - p = m.freeSnap(Inkscape::Snapper::SNAPPOINT_BBOX | Inkscape::Snapper::SNAPPOINT_NODE, p, NULL).getPoint(); + p = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE, p, NULL).getPoint(); } static SPCurve * -- cgit v1.2.3