Pixel-locked layers cannot be used as source for Clone/Heal tools
Environment/Versions
- GIMP version: 2.10.34
- Package: Self-compiled
- Operating System: All
Description of the bug
One cannot use a pixel-locked layer as a source for Clone/Heal tools.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Create two images, one acting as source (so it should contains something), and the other one as target (can be a blank layer).
- Start the clone tool
- With nothing locked in the source image, check that you can control-click in the source image, and paint in the target image
- Pixel-lock the source layer, when you Control-click you get a message
The active layer's pixels are locked
…
Expected result:
- Merrily clone a pixel-locked layer to another
Actual result:
- You can't
Additional information
This happens if the two layers are in distinct images or in the same image.
What makes this aggravating is that when you clone between two layers in the same image, you usually don't want to alter the source layer by mistake (it is easy to forget to activate the target layer). So pixel-locking that source layer would be a good way to avoid such mistakes, and this bug precludes this.
Since the tool checks that the target layer is not pixel-locked (you can't clone from non-locked to locked) the check on the source serves no purpose anyway?