summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-09-15 08:19:07 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-09-15 08:19:07 +0000
commit18bccf196727b9f6726f487e4d021a8b0801a9b7 (patch)
tree49afb3526a085d14b4d83a64501cabb677f755d0 /src/selection.cpp
parentr16583@tres: ted | 2007-09-14 09:15:49 -0700 (diff)
downloadinkscape-18bccf196727b9f6726f487e4d021a8b0801a9b7.tar.gz
inkscape-18bccf196727b9f6726f487e4d021a8b0801a9b7.zip
avoid code duplication, i.e. use sp_item_snappoints in the object-snapper.cpp
(bzr r3752)
Diffstat (limited to 'src/selection.cpp')
-rw-r--r--src/selection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selection.cpp b/src/selection.cpp
index ca3de5927..af5db825c 100644
--- a/src/selection.cpp
+++ b/src/selection.cpp
@@ -381,7 +381,7 @@ std::vector<NR::Point> Selection::getSnapPoints(bool includeItemCenter) const {
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, 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
@@ -398,7 +398,7 @@ std::vector<NR::Point> Selection::getSnapPointsConvexHull() const {
std::vector<NR::Point> p;
for (GSList const *iter = items; iter != NULL; iter = iter->next) {
- sp_item_snappoints(SP_ITEM(iter->data), SnapPointsIter(p));
+ sp_item_snappoints(SP_ITEM(iter->data), false, SnapPointsIter(p));
}
std::vector<NR::Point> pHull;