From: dvlierop2 Date: Fri, 27 Feb 2009 20:21:31 +0000 (+0000) Subject: Allow snapping to objects in hidden layers X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=41033f1c34daab356ce8e7acad7e4ff4a4e7c26f;p=inkscape.git Allow snapping to objects in hidden layers --- diff --git a/src/object-snapper.cpp b/src/object-snapper.cpp index e2ca05408..3d06925a1 100644 --- a/src/object-snapper.cpp +++ b/src/object-snapper.cpp @@ -111,9 +111,9 @@ void Inkscape::ObjectSnapper::_findCandidates(SPObject* parent, for (SPObject* o = sp_object_first_child(parent); o != NULL; o = SP_OBJECT_NEXT(o)) { g_assert(_snapmanager->getDesktop() != NULL); - if (SP_IS_ITEM(o) && !SP_ITEM(o)->isLocked() && !(_snapmanager->getDesktop()->itemIsHidden(SP_ITEM(o)) && !clip_or_mask)) { - // Don't snap to locked items, and - // don't snap to hidden objects, unless they're a clipped path or a mask + if (SP_IS_ITEM(o) && !(_snapmanager->getDesktop()->itemIsHidden(SP_ITEM(o)) && !clip_or_mask)) { + // Snapping to items in a locked layer is allowed + // Don't snap to hidden objects, unless they're a clipped path or a mask /* See if this item is on the ignore list */ std::vector::const_iterator i; if (it != NULL) {