summaryrefslogtreecommitdiffstats
path: root/src/seltrans.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-11-21 19:23:55 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-11-21 19:23:55 +0000
commitc93dc21127b07300b1e660c7b2782e542aefdcbc (patch)
tree2f8e8b9ce51b5313e0af71dbe6968dda32017a73 /src/seltrans.cpp
parentuse gobble_key_events to speed up keyboard moves (diff)
downloadinkscape-c93dc21127b07300b1e660c7b2782e542aefdcbc.tar.gz
inkscape-c93dc21127b07300b1e660c7b2782e542aefdcbc.zip
Also consider path nodes for snapping
(bzr r4122)
Diffstat (limited to 'src/seltrans.cpp')
-rw-r--r--src/seltrans.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp
index 512d2c0ca..785cf7d60 100644
--- a/src/seltrans.cpp
+++ b/src/seltrans.cpp
@@ -259,18 +259,17 @@ void Inkscape::SelTrans::grab(NR::Point const &p, gdouble x, gdouble y, bool sho
_point = p;
- // The selector tool should snap the bbox and the special snappoints, but not path nodes
+ // The selector tool should snap the bbox, special snappoints, and path nodes
// (The special points are the handles, center, rotation axis, font baseline, ends of spiral, etc.)
// First, determine the bounding box for snapping ...
_bbox = selection->bounds(_snap_bbox_type);
_approximate_bbox = selection->bounds(SPItem::APPROXIMATE_BBOX); // Used for correctly scaling the strokewidth
-
- // Next, get all special points for snapping
+ // Next, get all points to consider for snapping
SnapManager const &m = _desktop->namedview->snap_manager;
- _snap_points = selection->getSnapPoints(m.getIncludeItemCenter()); // Excludes path nodes
- std::vector<NR::Point> snap_points_hull = selection->getSnapPointsConvexHull(); // Includes path nodes
+ _snap_points = selection->getSnapPoints(m.getIncludeItemCenter());
+ std::vector<NR::Point> snap_points_hull = selection->getSnapPointsConvexHull();
if (_snap_points.size() > 100) {
/* Snapping a huge number of nodes will take way too long, so limit the number of snappable nodes
An average user would rarely ever try to snap such a large number of nodes anyway, because