Bug 121626 - When copying sheets or objects (checkboxes/charts) references in the objects are not updated
Summary: When copying sheets or objects (checkboxes/charts) references in the objects ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
: 125967 126802 (view as bug list)
Depends on:
Blocks: Cell-Reference
  Show dependency treegraph
Reported: 2018-11-22 15:40 UTC by Fabio Zaffora
Modified: 2023-02-19 00:01 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:

Chart sample to test copy. (24.82 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-02-19 00:01 UTC, m_a_riosv

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Zaffora 2018-11-22 15:40:01 UTC
For certain objects (i have tested charts and checkboxes) references to cells within the objects are static. This can have very annoying consequences. If this is not easy to fix, the programming team should at least consider some solution when copying an entire sheet. The way it is now, all checkboxes and charts within the newly made sheed will still refer to the data on the original sheet.

Steps to Reproduce:
1. on a new document create a checkbox or chart that refers to one or more cells in the current sheet
2. copy the sheet using the 'move or copy sheet'function

Actual Results:
the objects on the newly created sheet are as-good-as useless because they refer to the data on the original sheet. The references need to be updated manually

Expected Results:
the references within the objects are automatically updated

Reproducible: Always

User Profile Reset: Yes

Additional Info:
with complex sheets containing a lot of objects the behaviour is very annoying since I can't just copy the sheet to a new one expecting it to behave the same which is cause to significant frustration.
Comment 1 Oliver Brinzing 2018-11-22 18:33:22 UTC

- Sheet1, checkbox Linked Cell: A1
- copy sheet
- Sheet2: checkbox Linked Cell: Sheet1.A1
Comment 2 Oliver Brinzing 2018-11-22 18:40:03 UTC
already reproducible with 

Build-ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Gebietsschema: de_DE
Comment 3 Oliver Brinzing 2019-06-17 16:59:50 UTC
*** Bug 125967 has been marked as a duplicate of this bug. ***
Comment 4 Oliver Brinzing 2019-06-17 17:03:58 UTC
already reproducible with AOO 4.1.5
Comment 5 Oliver Brinzing 2019-08-10 09:00:10 UTC
*** Bug 126802 has been marked as a duplicate of this bug. ***
Comment 6 QA Administrators 2021-08-11 03:57:59 UTC Comment hidden (obsolete)
Comment 7 gmolleda 2022-10-21 14:43:52 UTC
It also fails when copying and pasting on the same sheet:
If a checkbox is created in A1 and the anchor is set to A1 with linked cell B1.
Now copy both cells A1:B1 to A2:B2 but the new checkbox is still linked to B1.
A2 should be linked to B2.
Comment 8 m_a_riosv 2023-02-19 00:01:58 UTC
Created attachment 185467 [details]
Chart sample to test copy.

On the sample file copying chart in H2, anywhere, always refers to the range of the copied chart, no way to change it.

Maybe the easy way could be asking when copying.

I don't know if it would be possible to have the chars with relative addresses instead of absolute, so when copying it can change to adapt the new chart relative to their position.

Still with
Version: (X86_64) / LibreOffice Community
Build ID: 9788a565b3241d1bd62394b9e29c322361d05f80
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded Jumbo