Pinta
Pinta copied to clipboard
Undoing a pasting operation after selecting a different layer deletes the content of this layer
To Reproduce
- Open a file in Pinta
- Select a part of the image
- Copy (Ctrl+C) then paste it on a new layer (Ctrl+Shift+V)
- Select the newly created layer and paste on it (Ctrl+V)
- Select the original layer
- Undo (Ctrl+Z)
Version System: Bluefin stable Pinta version: 3.0.4 (Flathub)
https://github.com/user-attachments/assets/38f96350-4d5a-40c9-a238-89bd5f2c324c
Confirmed, thanks for the report!
I suspect the issue is that FinishPixelsHistoryItem is doing things with the document's current layer. It should probably be storing the original layer index like SimpleHistoryItem, since the active layer can be switched at any time without introducing a history item