summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection.cpp')
-rw-r--r--src/selection.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/selection.cpp b/src/selection.cpp
index 44f601362..2b143dd5a 100644
--- a/src/selection.cpp
+++ b/src/selection.cpp
@@ -28,6 +28,7 @@
#include "sp-shape.h"
#include "sp-path.h"
+#include "sp-item-group.h"
#include <sigc++/functors/mem_fun.h>
@@ -382,6 +383,9 @@ std::vector<NR::Point> Selection::getSnapPoints() const {
// (Same check occurs in sp-item-group)
sp_item_snappoints(this_item, SnapPointsIter(p));
}
+ //Include the transformation origin for snapping
+ //For a group only the group's origin is considered
+ p.push_back(this_item->getCenter());
}
return p;