summaryrefslogtreecommitdiffstats
path: root/src/snap.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-01-21 23:33:24 +0000
committerJabiertxof <jtx@jtx>2017-01-21 23:33:24 +0000
commiteeb5405c1b2734322ca9ed506e8a8e16a87c2a4f (patch)
tree5f98cdb1ee5633b69ec1f5c21d0d5e69f8770ad2 /src/snap.cpp
parentOrganize doeffect function (diff)
parentFix "swap fill and stroke" for multiple objects in selection (diff)
downloadinkscape-eeb5405c1b2734322ca9ed506e8a8e16a87c2a4f.tar.gz
inkscape-eeb5405c1b2734322ca9ed506e8a8e16a87c2a4f.zip
Update to trunk
(bzr r13645.1.165)
Diffstat (limited to 'src/snap.cpp')
-rw-r--r--src/snap.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index 7f0e8d9dc..c84da0491 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -19,10 +19,6 @@
#include <2geom/transforms.h>
#include "sp-namedview.h"
-#include "snap.h"
-#include "snap-enums.h"
-#include "snapped-line.h"
-#include "snapped-curve.h"
#include "pure-transform.h"
#include "display/canvas-grid.h"
@@ -30,9 +26,7 @@
#include "inkscape.h"
#include "desktop.h"
-#include "selection.h"
#include "sp-guide.h"
-#include "preferences.h"
#include "ui/tools/tool-base.h"
#include "helper/mathfns.h"
using std::vector;
@@ -708,8 +702,8 @@ void SnapManager::setupIgnoreSelection(SPDesktop const *desktop,
_items_to_ignore.clear();
Inkscape::Selection *sel = _desktop->selection;
- std::vector<SPItem*> const items = sel->itemList();
- for (std::vector<SPItem*>::const_iterator i=items.begin();i!=items.end();++i) {
+ auto items = sel->items();
+ for (auto i=items.begin();i!=items.end();++i) {
_items_to_ignore.push_back(*i);
}
}