gui: Unselect data in data editor when the datasheet is replaced.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 4 May 2011 04:30:01 +0000 (21:30 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 5 May 2011 01:51:52 +0000 (18:51 -0700)
commit50800683562f7eaa3d8872b71163bbdcfb1d9ea5
tree24dbb1ec98f60a814a98308b804a6244d42ac312
parent8761c0923f6c1676ac9bf730c94471e9ce952d4f
gui: Unselect data in data editor when the datasheet is replaced.

The active cell in the PsppireSheet remembers its contents even if
the whole sheet gets replaced, so we have to unselect the cell when
this happens to avoid replacing the cell's contents by whatever was
there before.

Bug #30502.
Thanks to Michel Boaventura for reporting the problem and John
Darrington for diagnosing it.
src/ui/gui/psppire-data-editor.c