SUMMARY If a layer is locked, the user can still make a selection and move the pixels selected. STEPS TO REPRODUCE 1. Create a layer and draw something in it 2. Lock the layer 3. make a selection and use the move tool to move the pixels you have selected OBSERVED RESULT The selected pixels are moved EXPECTED RESULT Nothing should happen, since the layer is locked.
Thanks for the report, I can confirm the issue.
Git commit 36573abc8c6ddd22b339d8f8c3da26da5bf5db1a by Agata Cacko. Committed on 17/03/2023 at 17:00. Pushed by tymond into branch 'master'. Prevent moving selected parts of a locked layer Before this commit, Move Tool could still move selected part on a layer even if it was locked. This commit prevents it from happening. M +10 -1 plugins/tools/basictools/kis_tool_move.cc https://invent.kde.org/graphics/krita/commit/36573abc8c6ddd22b339d8f8c3da26da5bf5db1a