diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-08-07 20:05:00 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-08-07 20:05:00 +0000 |
| commit | 122d4274f150001d17154b72178ef1b53125c66c (patch) | |
| tree | 24b90705ce1d319bf04129965d1a502618952b46 /src/draw-context.cpp | |
| parent | warn when ConvertToShape fails (diff) | |
| download | inkscape-122d4274f150001d17154b72178ef1b53125c66c.tar.gz inkscape-122d4274f150001d17154b72178ef1b53125c66c.zip | |
Only in the selector tool we should snap in bbox mode (PointType = SNAPPOINT_BBOX)
(bzr r3415)
Diffstat (limited to 'src/draw-context.cpp')
| -rw-r--r-- | src/draw-context.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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 * |
