Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Don't allow lowering/raising a mask into a locked layer

Maciej Jesionowskicec3a8679a79
diff --git a/libs/ui/kis_node_juggler_compressed.cpp b/libs/ui/kis_node_juggler_compressed.cpp
index 75ef3bbffa..b9af31af83 100644
--- a/libs/ui/kis_node_juggler_compressed.cpp
+++ b/libs/ui/kis_node_juggler_compressed.cpp
@@ -323,7 +323,7 @@ private:
/**
- * A generalized command to muve up/down a set of layer
+ * A generalized command to move up/down a set of layer
*/
struct LowerRaiseLayer : public KisCommandUtils::AggregateCommand {
LowerRaiseLayer(BatchMoveUpdateDataSP updateData,
@@ -433,7 +433,8 @@ struct LowerRaiseLayer : public KisCommandUtils::AggregateCommand {
}
}
- if (!newParent) return;
+ if (!newParent ||
+ !newParent->isEditable(false)) return;
addCommand(new KisLayerUtils::KeepNodesSelectedCommand(sortedNodes, sortedNodes,
m_activeNode, m_activeNode,