Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Krita
Commits
bccda781
Commit
bccda781
authored
Aug 14, 2020
by
Dmitry Kazakov
Browse files
Fix layer duplication handle locked layers properly
CCBUG:406697
parent
fe9741d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/ui/kis_node_juggler_compressed.cpp
View file @
bccda781
...
...
@@ -476,6 +476,13 @@ struct DuplicateLayers : public KisCommandUtils::AggregateCommand {
if
(
filteredNodes
.
isEmpty
())
return
;
KisNodeSP
newAbove
=
filteredNodes
.
last
();
// make sure we don't add the new layer into a locked group
KIS_SAFE_ASSERT_RECOVER_RETURN
(
newAbove
->
parent
());
while
(
newAbove
->
parent
()
&&
!
newAbove
->
parent
()
->
isEditable
())
{
newAbove
=
newAbove
->
parent
();
}
KisNodeSP
newParent
=
newAbove
->
parent
();
// override parent if provided externally
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment