summaryrefslogtreecommitdiffstats
path: root/src/object-snapper.cpp
diff options
context:
space:
mode:
authorAbhishek Sharma Public <spyzerdotabhishek0at-signgmaildotcom>2010-07-03 17:20:36 +0000
committerAbhishek Sharma Public <spyzerdotabhishek0at-signgmaildotcom>2010-07-03 17:20:36 +0000
commit1aad26aea24f62b63c992118f36b12483f9a5414 (patch)
tree5629cd23a5343c00dae666c82dcebb6a1e7b7c6a /src/object-snapper.cpp
parentNew Class SPDocumentUndo created which takes care of c++fying some non SPDocu... (diff)
downloadinkscape-1aad26aea24f62b63c992118f36b12483f9a5414.tar.gz
inkscape-1aad26aea24f62b63c992118f36b12483f9a5414.zip
another c++ification for sp-object.h/cpp and still in progress...
(bzr r9546.1.4)
Diffstat (limited to 'src/object-snapper.cpp')
-rw-r--r--src/object-snapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object-snapper.cpp b/src/object-snapper.cpp
index 379626683..00bd10fe2 100644
--- a/src/object-snapper.cpp
+++ b/src/object-snapper.cpp
@@ -98,7 +98,7 @@ void Inkscape::ObjectSnapper::_findCandidates(SPObject* parent,
Geom::Rect bbox_to_snap_incl = bbox_to_snap; // _incl means: will include the snapper tolerance
bbox_to_snap_incl.expandBy(getSnapperTolerance()); // see?
- for (SPObject* o = sp_object_first_child(parent); o != NULL; o = SP_OBJECT_NEXT(o)) {
+ for (SPObject* o = parent->first_child(); o != NULL; o = SP_OBJECT_NEXT(o)) {
g_assert(_snapmanager->getDesktop() != NULL);
if (SP_IS_ITEM(o) && !(_snapmanager->getDesktop()->itemIsHidden(SP_ITEM(o)) && !clip_or_mask)) {
// Snapping to items in a locked layer is allowed