Creating an undo group marks the image as dirty
Environment/Versions
- GIMP version: 2.10.34
- Package: self-compiled
- Operating System: All
Description of the bug
Creating an undo-group marks the image as dirty
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open an image in Gimp, check that it is "clean" (no asterisk before name in title bar).
- Open the Python console and enter this:
>>> image=gimp.image_list()[0]
>>> pdb.gimp_image_undo_group_start(image)
>>> pdb.gimp_image_undo_group_end(image)
…
Expected result:
Since there are no changes to the image, the image should remain "clean"
Actual result:
The image is marked "dirty" (when the group is created)
Additional information
This is a problem when you create an undo-friendly plugin that may in some cases not change the image at all. The image will will be marked dirty anyway.