Bug 147082 - Copying Sheet should also copy Range
Summary: Copying Sheet should also copy Range
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-DataRange
  Show dependency treegraph
 
Reported: 2022-01-31 07:43 UTC by Samuel Mehrbrodt (allotropia)
Modified: 2023-04-17 14:56 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
bugdoc (8.85 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-01-31 07:43 UTC, Samuel Mehrbrodt (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Mehrbrodt (allotropia) 2022-01-31 07:43:44 UTC
Created attachment 177927 [details]
bugdoc

1. Open attached spreadsheet. sheet1 has a sum formula which references the "aaa" range. sheet2 has the same sum formula.
2. Copy sheet1 to a new sheet "sheet1_2".

Expected: The sum formula on sheet1_2 would copy the "aaa" range so that it references the cells on sheet3. When you change something on sheet1, only the sum formulas on sheet1 and sheet2 are updated.

Actual: sheet1_2 still references the "aaa" range. Updating the values on sheet1_2 does not change the sum on sheet1_2. Instead, updating the values on sheet1 updates the sum on all three sheets.
Comment 1 Samuel Mehrbrodt (allotropia) 2022-01-31 07:55:09 UTC
PS: After the fix for bug 145054, the range is already copied when copying the sheet. What is missing, is that the formulas are updated to reference the new range.
Comment 2 Timur 2022-02-01 13:32:53 UTC
I set New. So, there would be 2 "aaa" ranges.
Now when LO imports from XLSX or XLS, it doesn't read Database Range as it should. But formula behaves properly on change and sheet copy.