Commit 36d91be0 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

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

CCBUG:406697
parent 9fe41211
......@@ -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;
break;
}
......
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