Commit f0c27aa0 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Make sure pasted (and D&D'ed) layers are not pasted into locked groups

parent f4ad7de3
......@@ -383,7 +383,7 @@ bool nodeAllowsAsChild(KisNodeSP parent, KisNodeList nodes)
bool result = true;
Q_FOREACH (KisNodeSP node, nodes) {
if (!parent->allowAsChild(node)) {
if (!parent->allowAsChild(node) || !parent->isEditable(false)) {
result = false;
Supports Markdown
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