GNOME Bugzilla – Bug 161890
undo doesn't restore formula correctly
Last modified: 2008-01-09 14:17:46 UTC
1. Open the attached spread sheet 2. Select everything by clicking in the upper left corner 3. Data -> Sort; click "Sort range has a header"; OK 4. Undo result: formula in C4 is sum(#REF!) expected result: the formula in C4 is the same as before This is with version 1.2.13
Created attachment 35083 [details] spreadsheet used to expose the bug
Confirmed.
I see the problem in cvs-2005-jul-11 We are assuming that the relocations in a sort operation are non-destructive. You've just found a case where they are descructive.
Specifically the problem is that the formula in C4 [=sum(B2:B4)] is moved to C2 where it no longer makes sense. That's a pretty nasty formula to sort, but obviously undo should still work. We should probably simply copy the source area.
Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.
Bug still exists in 1.7.11 on Ubuntu 7.10.
> Bug still exists in 1.7.11 on Ubuntu 7.10. What, specifically, do you mean by that? As far as I can tell, the initial sorting result -- which produces #REF! -- is the right thing to do. Undo works for me.
Oh, yes, of course. I mistook #REF for the bug. My fault - sorry. Verified fixed :)