diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-09-15 08:19:07 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-09-15 08:19:07 +0000 |
| commit | 18bccf196727b9f6726f487e4d021a8b0801a9b7 (patch) | |
| tree | 49afb3526a085d14b4d83a64501cabb677f755d0 /src/sp-item.cpp | |
| parent | r16583@tres: ted | 2007-09-14 09:15:49 -0700 (diff) | |
| download | inkscape-18bccf196727b9f6726f487e4d021a8b0801a9b7.tar.gz inkscape-18bccf196727b9f6726f487e4d021a8b0801a9b7.zip | |
avoid code duplication, i.e. use sp_item_snappoints in the object-snapper.cpp
(bzr r3752)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 4a5c0079b..8f91c97e6 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -785,7 +785,7 @@ static void sp_item_private_snappoints(SPItem const *item, SnapPointsIter p) } } -void sp_item_snappoints(SPItem const *item, SnapPointsIter p) +void sp_item_snappoints(SPItem const *item, bool includeItemCenter, SnapPointsIter p) { g_assert (item != NULL); g_assert (SP_IS_ITEM(item)); @@ -794,6 +794,10 @@ void sp_item_snappoints(SPItem const *item, SnapPointsIter p) if (item_class.snappoints) { item_class.snappoints(item, p); } + + if (includeItemCenter) { + *p = item->getCenter(); + } } void |
