summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd321ee)
raw | patch | inline | side by side (parent: cd321ee)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Wed, 25 Jul 2007 12:07:39 +0000 (12:07 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Wed, 25 Jul 2007 12:07:39 +0000 (12:07 +0000) |
src/selection.cpp | patch | blob | history | |
src/sp-item.cpp | patch | blob | history |
diff --git a/src/selection.cpp b/src/selection.cpp
index 44f601362e1494eedce9c43b9a8381d5e3be7391..2b143dd5a3f379c707be65604113fd2c2d84ed92 100644 (file)
--- a/src/selection.cpp
+++ b/src/selection.cpp
#include "sp-shape.h"
#include "sp-path.h"
+#include "sp-item-group.h"
#include <sigc++/functors/mem_fun.h>
// (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;
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index 469b95222cba39a74e921de55a31113367bae5a6..309c42c906c5d9b5dbf8c8a9e91bc5062b7ec4e5 100644 (file)
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
if (item_class.snappoints) {
item_class.snappoints(item, p);
}
-
- *p = item->getCenter();
}
void