incorrect determination of whether document is modified
Recipe:
Start a fresh copy of gnumeric, with no input file
Save as foo.gnumeric
In cell A1, type xxx [tab] xxx [tab]
Observe that the window border shows an asterisk, as it should, indicating that the file is modified.
File -> Save.
Observe that the asterisk disappears, as it should.
^Z i.e. undo. Observe that the asterisk appears, as it should.
So far so good.......
^Z i.e. undo again. Observe that the asterisk disappears. This is bad.
Exit via ^Q or ^W. Observe no "are you sure" dialog. This is bad.
Reopen the file.
Observe that the xxx xxx content is still there;
in other words, the two undo operations have been lost.
The content of the file does not reflect the state of the document as of the
last time the application was closed.
Platform:
This is 100% reproducible chez moi.
Many variations on the recipe produce similar results.
This is not a new bug. It is observed with the standard gnumeric that came
with my distro, i.e.
gnumeric version '1.12.38'
datadir := '/usr/local/share/gnumeric/1.12.38'
libdir := '/usr/local/lib/gnumeric/1.12.38'
It is also observed with a very recent version, complied from freshly pulled git sources:
:; uname -srmo
Linux 5.9.13+ x86_64 GNU/Linux
:; lsb_release -a
LSB Version: core-11.1.0ubuntu2-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:cxx-4.1-amd64:cxx-4.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:graphics-4.1-amd64:graphics-4.1-noarch:printing-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
:; GG --version
gnumeric version '1.12.49'
datadir := '/usr/src/gnome/install/share/gnumeric/1.12.49'
libdir := '/usr/src/gnome/gnumeric'
:; git log
commit 49a4fcf1ae9bfe28f459e7934125aca0f408339f
Date: Thu Dec 24 18:32:37 2020 -0700