Display issue after undoing crop on a layer with filters
Environment/Versions
- GIMP version: bad25042 (current master)
- Package: built from source
- Operating System: Linux
Description of the bug
After undoing crop on a layer with filters, the image is displayed with the filter applied only to part of the layer.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Create a new image with a white background
- Use Colors->Curves to darken the image. This adds a filter to the layer.
- Use the Crop tool to crop the image to a smaller size
- Edit->Undo
Expected result:
The image looks like after step 2, i.e. completely dark.
Actual result:
In the top left corner, there is a dark rectangle the size of the cropped image. The rest of the image is white.
Additional information
This seems to be a display-only issue. After saving and reopening the image, it looks as expected.
Seems related to #10523 (closed) (but different enough, since it's not destructive).