Bug 151278

Summary: Label number format lost when copy/pasting graph
Product: LibreOffice Reporter: Milan Bouchet-Valat <nalimilan>
Component: ChartAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: balazs.varga991, kelemeng, raal
Priority: medium Keywords: bibisected, bisected, regression
Version: 7.2.7.2 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=129173
Whiteboard:
Crash report or crash signature: Regression By: Balazs Varga
Bug Depends on:    
Bug Blocks: 90486    
Attachments: Test case ODS file

Description Milan Bouchet-Valat 2022-10-02 16:14:07 UTC
Description:
When copy/pasting a graph from an ODS document to another ODS or ODT document, the number format for data labels is lost when set to be "Source format". In the attached testcase, the two original graphs use a single digit after the decimal separator, i.e. the format from source cells. But after copying either of the graphs to a new document, many more decimals are printed, making the output unreadable.

This bug happens on LO 7.2.7.2 and 7.4.1.2. It is a regression from version 6.2.5.2, though I'm not sure when exactly it was introduced.

Steps to Reproduce:
1. Open attachment.
2. Select one of the graphs.
3. Hit Ctrl+C.
4. Create a new ODS file.
5. Hit Ctrl+V.

Actual Results:
Labels use many decimal digits.

Expected Results:
Labels use only a single decimal digit like in original graph.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.1.2 / LibreOffice Community
Build ID: 3c58a8f3a960df8bc8fd77b461821e42c061c5f0
CPU threads: 4; OS: Mac OS X 12.6; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 1 Milan Bouchet-Valat 2022-10-02 16:14:44 UTC
Created attachment 182789 [details]
Test case ODS file
Comment 2 raal 2022-10-02 20:48:13 UTC
Confirm with Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: bb47ffbc9d36e83695aa0d01767d3f83533c04e0
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

not in Version: 6.0.0.0.alpha1+
Comment 3 raal 2022-10-02 21:01:00 UTC
This seems to have begun at the below commit.
Adding Cc: to Balazs Varga; Could you possibly take a look at this one?
Thanks
 fb0e0af33831dd51c24800b223eb5ca67174c301 is the first bad commit
commit fb0e0af33831dd51c24800b223eb5ca67174c301
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Mon Dec 16 09:07:53 2019 +0100

    source e57d90cd4e51a1353eafc87bb29cfe6076704a7c

https://git.libreoffice.org/core/+/e57d90cd4e51a1353eafc87bb29cfe6076704a7c