Bug 459797 - Locking a layer does not prevent pasting an object on vector layers
Summary: Locking a layer does not prevent pasting an object on vector layers
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Layer Stack (show other bugs)
Version: 5.1.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: vanyossi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-28 17:47 UTC by Dmitry
Modified: 2022-09-30 02:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2022-09-28 17:47:53 UTC
SUMMARY
When inserting an object on a blocked layer, the insertion is successful


STEPS TO REPRODUCE
1. Create the first layer.
2. Block the first layer.
3. Create a second layer.
4. Insert the object on the second layer. For example, a line.
5. Select this object and press Ctrl+X.
6. Select the first layer.
7. Press Ctrl+V.

OBSERVED RESULT
The object was successfully inserted on the blocked layer

EXPECTED RESULT
Nothing happened

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.11-zen1-1-zen (64-bit)
Comment 1 vanyossi 2022-09-28 21:47:33 UTC
This is for vector layers
Locking a layer does not prevent from pasting objects from the clipboard.
Comment 2 vanyossi 2022-09-30 02:22:40 UTC
Git commit 68264e4ba2e57eb7d4b636f5cb8c5399fca9bbef by Ivan Yossi.
Committed on 30/09/2022 at 02:21.
Pushed by ivany into branch 'master'.

Do nothing if target layer is locked

M  +1    -1    libs/ui/actions/KisPasteActionFactories.cpp

https://invent.kde.org/graphics/krita/commit/68264e4ba2e57eb7d4b636f5cb8c5399fca9bbef