Commit b45e78e1 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Don't add new layers to the group if it is locked

When you finished adding layers to the group just lock it and the
new layers will not be added to it anymore. They will be added as
sibling nodes.

Fixes T475
parent d5bd36e2
......@@ -543,7 +543,9 @@ void KisLayerManager::adjustLayerPosition(KisNodeSP node, KisNodeSP activeNode,
parent = activeNode;
above = parent->lastChild();
while (parent && !parent->allowAsChild(node)) {
while (parent &&
(!parent->allowAsChild(node) || parent->userLocked())) {
above = parent;
parent = parent->parent();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment