diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-11-21 19:23:55 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-11-21 19:23:55 +0000 |
| commit | c93dc21127b07300b1e660c7b2782e542aefdcbc (patch) | |
| tree | 2f8e8b9ce51b5313e0af71dbe6968dda32017a73 /src/selection.cpp | |
| parent | use gobble_key_events to speed up keyboard moves (diff) | |
| download | inkscape-c93dc21127b07300b1e660c7b2782e542aefdcbc.tar.gz inkscape-c93dc21127b07300b1e660c7b2782e542aefdcbc.zip | |
Also consider path nodes for snapping
(bzr r4122)
Diffstat (limited to 'src/selection.cpp')
| -rw-r--r-- | src/selection.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/selection.cpp b/src/selection.cpp index e4c628d9e..68a9a2cd9 100644 --- a/src/selection.cpp +++ b/src/selection.cpp @@ -369,20 +369,13 @@ NR::Maybe<NR::Point> Selection::center() const { /** * Compute the list of points in the selection that are to be considered for snapping. - * This includes all special points of each item in the selection, except path nodes */ std::vector<NR::Point> Selection::getSnapPoints(bool includeItemCenter) const { GSList const *items = const_cast<Selection *>(this)->itemList(); std::vector<NR::Point> p; for (GSList const *iter = items; iter != NULL; iter = iter->next) { - // getSnapPoints() is only being used in the selector tool, which should - // not snap path nodes. Only the node tool should snap those. SPItem *this_item = SP_ITEM(iter->data); - if (!SP_IS_PATH(this_item)) { - // Only snap if we don't have a path at hand - // (Same check occurs in sp-item-group) - sp_item_snappoints(this_item, false, SnapPointsIter(p)); - } + sp_item_snappoints(this_item, false, SnapPointsIter(p)); //Include the transformation origin for snapping //For a group only the group's origin is considered if (includeItemCenter) { |
