Bug 153467 - Charts created by Calc are damaged when copied as Metafile (GDI)
Summary: Charts created by Calc are damaged when copied as Metafile (GDI)
Status: RESOLVED DUPLICATE of bug 153672
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: regression-scaled-glyph-positions
  Show dependency treegraph
 
Reported: 2023-02-08 13:22 UTC by Andy
Modified: 2023-11-22 11:16 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A spreadsheet with a chart a some pasted special as metafile corrupted copies (112.46 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-02-08 13:24 UTC, Andy
Details
A short video where I use 7.6 freshly installed to show the problem (3.94 MB, video/mp4)
2023-02-10 17:31 UTC, Andy
Details
my sample file (82.66 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-02-17 02:53 UTC, nobu
Details
new sample (77.53 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-02-17 09:40 UTC, nobu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy 2023-02-08 13:22:29 UTC
Description:
When using Charts created by Calc in other contexts it is often useful or all the way necessary to paste them as Metafiles, with the specific option of "paste special command". This often makes them more compatible with other applications.
While the procedure worked perfectly in previous LO releases, In 7.5.0 I discovered that all axis labels are now lost when you paste a Calc chart as metafile, even inside the same calc file where the original chart was.
This makes the functionality unusable, forcing in some cases to resort to bitmap image pasting, which implies heavier files and low resolution.

Steps to Reproduce:
1.Create a new calc file, put in some data and create a chart (line or dispersion type for example) with the data
2.Now select the chart, and copy it into the clipboard
3.In the same file (or in any other spreadsheet, or write, or Impress, or Draw), paste special the chart choosing "Metafile Graphics Device interface (GDI)"
4. the result is a copy of the chart that misses all axis labels, but indeed any text that was present, for instance the title you may have inserted
5. Notice that if you copy and "normal" paste the charts with normal paste in another app, Draw for instance, then copy copy again from the chart already pasted in Draw, and Paste special GDI, now it works. In some ways it is specifically the copy from Calc that causes the problem

Actual Results:
Copying calc charts and pasting special them as metafile GDI make all text in the chart disappear

Expected Results:
The paste special as GDI command should always give a metafile that is visually equal to the original


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: threaded
Comment 1 Andy 2023-02-08 13:24:16 UTC
Created attachment 185212 [details]
A spreadsheet with a chart a some pasted special as metafile corrupted copies
Comment 2 raal 2023-02-08 18:46:23 UTC
No repro with Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b052ec2f2fbe0f3044ba824c064a280a5ee9cd7f
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Seems to be fixed with dev version. Please could you test it with
dev version?  You can download it here:
http://dev-builds.libreoffice.org/daily/master/
Thank you
Comment 3 Andy 2023-02-10 17:29:29 UTC
I tested 7.6 but I get the same results actually.... 
I am attaching a short video where this is shown clearly
Comment 4 Andy 2023-02-10 17:31:29 UTC
Created attachment 185298 [details]
A short video where I use 7.6 freshly installed to show the problem
Comment 5 Andy 2023-02-13 16:27:25 UTC
(In reply to raal from comment #2)
> No repro with Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
> Build ID: b052ec2f2fbe0f3044ba824c064a280a5ee9cd7f
> CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
> Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
> Calc: threaded
> 
> Seems to be fixed with dev version. Please could you test it with
> dev version?  You can download it here:
> http://dev-builds.libreoffice.org/daily/master/
> Thank you

Have you seen what is happening in the video?
Thanks
Comment 6 nobu 2023-02-17 02:53:44 UTC
Created attachment 185420 [details]
my sample file

Reproducible with Version 7.5.0.3 64bit, OS:Windows10 64bit
Reproducible with Version 7.6.0.0 alpha0 64bit, OS:Windows10 64bit

I reported the next bug the other day.
https://bugs.documentfoundation.org/show_bug.cgi?id=153562
"Paste GDI" seems to be worse.
Check my sample file.

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.
Comment 7 nobu 2023-02-17 09:40:32 UTC
Created attachment 185426 [details]
new sample

I made a mistake.
It was a different bug. sorry.
I will post a sample again.

Not Reproduced with before Version 7.4.5.1 (x64), OS:Windows10 64bit

Reproducible with Version 7.5.0.3 64bit, OS:Windows10 64bit
Reproducible with Version 7.6.0.0 alpha0 64bit, OS:Windows10 64bit
Comment 8 Stéphane Guillou (stragu) 2023-03-25 23:51:20 UTC
This is fixed by commit ba42b8b95b2166f9bd578cd90c54e9826a755a6e which is a fix for bug 153672.
You can test the fix by installing 7.5.2 which will be released in a few days, or by testing a recent master build: https://dev-builds.libreoffice.org/daily/master/current.html

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