diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-03-26 22:29:17 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-03-26 22:29:17 +0000 |
| commit | 102c95490212a3f38b299cf2188bdabf00f79a64 (patch) | |
| tree | 1a44a299944311d0ef5ebc62521a08cacea6a87a /src/sp-item-group.cpp | |
| parent | fix range, make integer, remove unnecessary document_done, fix 1635388 (diff) | |
| download | inkscape-102c95490212a3f38b299cf2188bdabf00f79a64.tar.gz inkscape-102c95490212a3f38b299cf2188bdabf00f79a64.zip | |
Selector tool shouldn't snap to path nodes, see Bulia's comment in bug #1589436
(bzr r2767)
Diffstat (limited to 'src/sp-item-group.cpp')
| -rw-r--r-- | src/sp-item-group.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp index d4fa9536d..f43f4ded9 100644 --- a/src/sp-item-group.cpp +++ b/src/sp-item-group.cpp @@ -34,6 +34,7 @@ #include "prefs-utils.h" #include "sp-clippath.h" #include "sp-mask.h" +#include "sp-path.h" static void sp_group_class_init (SPGroupClass *klass); static void sp_group_init (SPGroup *group); @@ -297,8 +298,10 @@ static void sp_group_snappoints (SPItem const *item, SnapPointsIter p) o != NULL; o = SP_OBJECT_NEXT(o)) { - if (SP_IS_ITEM(o)) { - sp_item_snappoints(SP_ITEM(o), p); + if (SP_IS_ITEM(o) && !SP_IS_PATH(o)) { + // getSnapPoints() and sp_group_snappoints are only being used in the selector tool, + // which should not snap path nodes. Only the node tool should snap those. + sp_item_snappoints(SP_ITEM(o), p); } } } |
