summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-08-07 20:05:00 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-08-07 20:05:00 +0000
commit122d4274f150001d17154b72178ef1b53125c66c (patch)
tree24b90705ce1d319bf04129965d1a502618952b46 /src/draw-context.cpp
parentwarn when ConvertToShape fails (diff)
downloadinkscape-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.cpp5
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 *