Bug 153685 - Pasting Selected Range to Sheet as GDI Image, The chart images are gone.
Summary: Pasting Selected Range to Sheet as GDI Image, The chart images are gone.
Status: RESOLVED DUPLICATE of bug 99969
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Calc-Images
  Show dependency treegraph
Reported: 2023-02-17 10:19 UTC by nobu
Modified: 2024-03-03 01:00 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

sample file (103.58 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-02-17 10:20 UTC, nobu

Note You need to log in before you can comment on or make changes to this bug.
Description nobu 2023-02-17 10:19:53 UTC
Pasting Selected Range to Sheet as GDI Image, The chart images are gone.

Steps to Reproduce:
1. Open the sample file
2. Select and Copy just the cells within the red rectangle that has the caption "Copy Range."
3. Move to another cell.
4. From the Paste Icon dropdown in the toolbar, Select to paste using the GDI Metafile option.

Actual Results:
5. The chart image is paste as a blank.

Expected Results:
5. The image should be the same as the copy source.

Reproducible: Always

User Profile Reset: No

Additional Info:
Reproducible with Version 64bit, OS:Windows10 64bit
Reproducible with Version 64bit, OS:Windows10 64bit

Not Reproduced with before Version alpha1 32bit, OS:Windows10 64bit
However, the chart image is incorrect.
Comment 1 nobu 2023-02-17 10:20:44 UTC
Created attachment 185428 [details]
sample file
Comment 2 Xisco Faulí 2023-02-17 11:03:48 UTC
Regression introduced by:

author	Mike Kaganski <mike.kaganski@collabora.com>	2022-05-16 09:03:03 +0300
committer	Mike Kaganski <mike.kaganski@collabora.com>	2022-05-17 06:15:48 +0200
commit 964e2eaae9d32df201574e6f083acc630fed2f1d (patch)
tree a4508d47247bd46ae3c317828e9832de3cf4ed8c
parent 5386e561204af47a7a5eac3e56850478980bbc15 (diff)
tdf#142635: use the same ScDocument for clipboard and GlobalDrawPersist

Bisected with: bibisect-linux64-7.4

Adding Cc: to Mike Kaganski
Comment 3 Mike Kaganski 2024-03-03 00:58:01 UTC
The exact wording of the issue is "The chart images are gone", and the regression version => this is a dupe of tdf#99969, fixed just now.

However, we are back to the pre-existing problem of the wrong XY chart copy, where previous X data becomes Y data, and the new X data is simply the sequence of "1, 2, 3, ...".
Comment 4 Mike Kaganski 2024-03-03 01:00:34 UTC
Ah - that is tdf#153706, which is also yours, accurately created. Thus, this one is trued dupe => closing.

*** This bug has been marked as a duplicate of bug 99969 ***