Undoing the "straighten" operation in the Measure tool does not restore the measure points
GIMP version: 2.10.4
Operating System: Linux (Kubuntu 16.04)
Package: flatpak
Description of the bug
Using "Undo" after "Measure/straighten" doesn't restore the measure points
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Take an image with a slant
- Use the measure tool to measure the slant over the horizon: the two reference points are on the picture's horizon, and the measure tool displays a small angle (0.40°)
- In the Measure tool, hit "straighten"
- The picture is straightened, the measure points have been moved to stay on the horizon, and the Measure tool displays a null angle (0.00°). So far so good.
Edit>Undo
Expected result:
The picture is restored to its previous state:
- the picture is rotated back
- the measure points are on the horizon,
- the measure tool displays the initial small angle (0.40°)
Actual result:
- the picture is rotated back
- the measure points are left where they were moved when straightening the picture (so they are no longer on the horizon).
- the measure tool displays a null angle (0.00°)