Bug 131481 - Undo doesn't restore references in other sheets to a moved cell
Summary: Undo doesn't restore references in other sheets to a moved cell
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, dataLoss, regression
Depends on:
Blocks: Undo-Redo
  Show dependency treegraph
 
Reported: 2020-03-22 16:56 UTC by barteks2x
Modified: 2023-04-01 22:52 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description barteks2x 2020-03-22 16:56:04 UTC
Steps to reproduce (tested with version 6.3.4.2.0 on Gentoo linux, I wanted to test on latest but that will have to wait until I update libreoffice):

0. Create an empty spreadsheet in LibreOffice calc
1. Create 2 sheets named Sheet1 and Sheet2 in this spreadsheet
2. In Sheet1, set some value at cell A1
3. In Sheet2, write the formula =$Sheet1.A1 in any cell
4. Select cells A1-A2 (or any range of cells containing A1)
5. Drag and drop that selected cells to move them somewhere else. Reference in Sheet2 changes to new location of the content of A1
6. Undo (ctrl+c or edit->undo). Cell in Sheet1 is moved back to A1. Reference in Sheet2 is not changed back to the original.


This may "corrupt" a spreadsheet beyond practical recovery if noticed too late.
Comment 1 Mike Kaganski 2020-03-22 17:16:54 UTC
Repro with Version: 7.0.0.0.alpha0+ (x64)
Build ID: b29fb89d0a49fde0f5757774d64a7aba8298ac75
CPU threads: 12; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL

No repro with Version: 4.4.0.1
Build ID: 1ba9640ddd424f1f535c75bf2b86703770b8cf6f
Locale: ru_RU
Comment 2 Mike Kaganski 2020-03-23 06:40:06 UTC
Regression after https://git.libreoffice.org/core/+/9079da7f62febaf4cef0b77320c31b4e8bb6b5a5
Comment 3 QA Administrators 2022-03-24 03:41:27 UTC Comment hidden (obsolete)
Comment 4 PaulSh 2022-11-08 18:36:18 UTC
Still present in:

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL

I was about to report this as a new bug but found it was already reported. I've been getting sporadic corruption for ages and couldn't work out why until I hit on the reason today.

There are probably thousands upon thousands of spreadsheets out there that people haven't realised are corrupt because off-sheet references are looking at the wrong cells. Some may disagree, but I'd rate this as very high priority precisely because in a large, complex sheet you might not realise things have gone badly wrong until it's too late.