summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1b5ad44)
raw | patch | inline | side by side (parent: 1b5ad44)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Fri, 27 Feb 2009 20:21:31 +0000 (20:21 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Fri, 27 Feb 2009 20:21:31 +0000 (20:21 +0000) |
src/object-snapper.cpp | patch | blob | history |
diff --git a/src/object-snapper.cpp b/src/object-snapper.cpp
index e2ca05408700299b1520009acb32d864bc7aa009..3d06925a1aa50329229189d5b772579317533409 100644 (file)
--- a/src/object-snapper.cpp
+++ b/src/object-snapper.cpp
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<SPItem const *>::const_iterator i;
if (it != NULL) {