Deleting last layer of group not updating image
GIMP version: 2.10.8
Operating System: Windows 10 x64
Package: Installer from gimp.org
Description of the bug
Deleting the last layer of a layer group does not update the image.
Reproduction
Always reproducible.
Reproduction steps:
- Create a new image.
- Create a new layer group.
- Create a new transparent layer within that group.
- Paint on the new layer with the brush tool.
- Delete the new layer.
- Delete the layer group.
- Observe that the painted strokes remain, despite only the blank background layer existing.
- Toggle the background layer visibility.
- Observe that the image updates, clearing the phantom brush strokes.
…
Expected result: Deleting the last layer of a layer group immediately updates the displayed image.
Actual result: Deleting the last layer of a layer group does not clear the deleted layer's contents from the displayed image.