Bug 102057 - charts in duplicated sheet point to original sheet rather than to duplicated one
Summary: charts in duplicated sheet point to original sheet rather than to duplicated one
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.0.6.2 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart
  Show dependency treegraph
 
Reported: 2016-09-11 11:44 UTC by marc
Modified: 2023-03-16 10:59 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Data range of chart is not properly changed when copying a sheet with graphs multiple times (34.00 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-03-30 15:07 UTC, snowboard975
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marc 2016-09-11 11:44:05 UTC
calc 5.0.6.2: data ranges of charts in duplicated sheet point to original sheet rather than to duplicated one.

really time-wasting sine it forces user to edit every duplicated data range manually.

at times it does do the right thing at times it doesn't.  :)
Comment 1 Jean-Baptiste Faure 2016-09-18 07:38:39 UTC Comment hidden (obsolete)
Comment 2 m_a_riosv 2016-10-01 21:33:38 UTC

*** This bug has been marked as a duplicate of bug 43175 ***
Comment 3 snowboard975 2017-03-30 15:07:37 UTC
Created attachment 132285 [details]
Data range of chart is not properly changed when copying a sheet with graphs multiple times
Comment 4 snowboard975 2017-03-30 15:10:13 UTC
(In reply to snowboard975 from comment #3)
> Created attachment 132285 [details]
> Data range of chart is not properly changed when copying a sheet with graphs
> multiple times

(In reply to Jean-Baptiste Faure from comment #1)
> Please attach a test file showing the issue and describe step by step how to
> reproduce the problem. Please describe precisely how you duplicate the sheet
> with the chart.
> 
> Set status to NEEDINFO, please set it back to UNCONFIRMED once requested
> informations are provided.
> 
> Best regards. JBF

(In reply to Jean-Baptiste Faure from comment #1)
> Please attach a test file showing the issue and describe step by step how to
> reproduce the problem. Please describe precisely how you duplicate the sheet
> with the chart.
> 
> Set status to NEEDINFO, please set it back to UNCONFIRMED once requested
> informations are provided.
> 
> Best regards. JBF

Reproducible on Windows 7 (64-bit)

Version: 5.2.6.2 (x64)
Build ID: a3100ed2409ebf1c212f5048fbe377c281438fdc
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: en-US (nl_BE); Calc: group

How to reproduce:
1. Download the attached ods file in comment 3.
2. Copy the second sheet, Blad2, to the left side of the first sheet as its default new name, Blad2_2.
3. Copy the second sheet, Blad1, to the left side of the first sheet as its default new name, Blad1_2.
4. Copy the second sheet, Blad2_2, to the left side of the first sheet as its default new name, Blad2_2_2.
5. Copy the second sheet, Blad1_2, to the left side of the first sheet as its default new name, Blad1_2_2.
6. Click the second sheet, Blad2_2_2, and check the data range of the top left graph. Its expected value is $Blad2_2_2.$A$2:$B$7,$Blad2_2_2.$B$1. However, it points to $Blad2_2.$A$2:$B$7,$Blad2_2.$B$1.
Comment 5 snowboard975 2017-03-30 15:13:37 UTC
This bug is reproducible as in comment 4.
I also received a comment in thread of bug 43175 that this is an independent bug apart from bug 43175. 
Therefore, I have changed its status back to new.
Comment 6 snowboard975 2017-03-30 15:33:29 UTC
(In reply to marc from comment #0)
> calc 5.0.6.2: data ranges of charts in duplicated sheet point to original
> sheet rather than to duplicated one.
> 
> really time-wasting sine it forces user to edit every duplicated data range
> manually.
> 
> at times it does do the right thing at times it doesn't.  :)

I absolutely agrees with marc's comment especially in the following sentence.

"really time-wasting sine it forces user to edit every duplicated data range
 manually. at times it does do the right thing at times it doesn't.  :) "

It seems there is a workaround. 

Saving a worksheet immediately after copying a sheet that contains graphs and repeating saving it every time you copy the worksheet seems to prevent this problem.

Does it also work for you?
Comment 7 QA Administrators 2018-05-11 02:32:20 UTC Comment hidden (obsolete)
Comment 8 Robert Pollak 2019-05-12 20:06:47 UTC
I can reproduce this according to the instructions of comment 4 (with LO 6.0.7.3 64bit from the Ubuntu repos).
Comment 9 QA Administrators 2021-09-09 03:41:18 UTC Comment hidden (obsolete)
Comment 10 Robert Pollak 2021-09-10 13:20:51 UTC
I can reproduce this bug according to the instructions of comment 4, with:

Version: 6.4.7.2
Build ID: 1:6.4.7-0ubuntu0.20.04.1
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

and the LibreOffice-fresh.basic-x86_64.AppImage:

Version: 7.2.0.4 / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 11 Andreas Heinisch 2023-03-16 10:59:06 UTC
I cannot reproduce the bug anymore in:
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6c2542306bcc7caaab947664f252265058964fc2
CPU threads: 16; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL threaded