summaryrefslogtreecommitdiffstats
path: root/src/selection.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-07-25 12:07:39 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-07-25 12:07:39 +0000
commit75b22552736b3ac375676c3776615a0e23c45ed1 (patch)
treecf9f2eee9df15de45bf6417d103fa2653a6d9401 /src/selection.cpp
parentRetrieve preferences outside the for-loop, not inside. (diff)
downloadinkscape-75b22552736b3ac375676c3776615a0e23c45ed1.tar.gz
inkscape-75b22552736b3ac375676c3776615a0e23c45ed1.zip
Snapping the transformation origin should also work for paths, not only for shapes
(bzr r3296)
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;