From 75b22552736b3ac375676c3776615a0e23c45ed1 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Wed, 25 Jul 2007 12:07:39 +0000 Subject: Snapping the transformation origin should also work for paths, not only for shapes (bzr r3296) --- src/selection.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/selection.cpp') 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 @@ -382,6 +383,9 @@ std::vector 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; -- cgit v1.2.3