Regression: Image Crop To Selection destructively crops and repositions some layers when the crop is undone.
Environment/Versions
- GIMP version: 2.99.19 master 9750c77a
- Package: Gimp nightly (gnome master) flatpak
- Operating System: Linux
Description of the bug
This is a regression from recent updates to address issue #8044 (closed).
The operations being performed are to crop a section of the canvas, export the resulting image and then undo the operation, then repeat these actions as needed.
The following issues have been experienced twice so far for the very first time since updating master from an earlier release of 2.99.17 to recent commit 3c261a23 2.99.19 9750c77a:
- The layers which are visible at the time the undo operation is performed remain cropped to the degree they were when the crop was performed, however all other layers are restored.
- The layers which are visible at the time the undo operation is performed have moved themselves to a new position on the canvas after the undo operation is performed. All other layers are restored to their previous positions.
Reproduction
Is the bug reproducible? Always.
Reproduction steps (see the attached video):
- Crop to a selection
- select some layers
- Export the image
- Undo using the undo list
- Observe the unusual result (see screenshots attached)
…
Expected result: All layers are restored at their previous position and size as a result of undoing a Crop Image To Selection operation
Actual result: Layers that were visible when the Undo operation was performed are not reverted to their previous size and are not restored to their previous position on the canvas.
Additional information
Retested and verified with 2.99.19
If you have a backtrace for a crash or a warning, paste it here.