Bug 134866 - FILEOPEN XLSX Custom pie chart label with percentage shows incorrect value
Summary: FILEOPEN XLSX Custom pie chart label with percentage shows incorrect value
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All All
: medium normal
Assignee: Tünde Tóth
URL:
Whiteboard: target:7.1.0
Keywords: bibisected, bisected, implementationError
Depends on:
Blocks: OOXML-Chart
  Show dependency treegraph
 
Reported: 2020-07-16 13:59 UTC by NISZ LibreOffice Team
Modified: 2020-07-27 12:27 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Excel with custom data label (13.59 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-07-16 13:59 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document side by side in Excel and Calc (114.12 KB, image/png)
2020-07-16 14:00 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2020-07-16 13:59:48 UTC
Created attachment 163117 [details]
Example file from Excel with custom data label

Attached pie chart has a custom data label that has a custom label and percentage representation of the pie slices share.
Opening in Calc the percentage value changes from 50% to 600%.

Steps to reproduce:
    1. Open attached file

Actual results:
Largest slice has 600% displayed.

Expected results:
Largest slice should have 50% displayed.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 28f09062b2e9a3228ef5fe41312769ad566cc4b6
CPU szálak: 4; OS: Windows 6.3 Build 9600; Felületmegjelenítés: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL

Also happens in:
Verzió: 6.4.0.3 (x86)
Build az.: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU szálak: 4; OS: Windows 6.3 Build 9600; Felületmegjelenítés: alapértelmezett; VCL: win; 
Területi beállítások: en-US (hu_HU); Felület nyelve: hu-HU
Calc: CL

It was not imported as percentage value in:
Verzió: 6.3.0.4 (x86)
Build az.: 057fc023c990d676a43019934386b85b21a9ee99
CPU szálak: 4; OS: Windows 6.3; Felületmegjelenítés: alapértelmezett; VCL: win; 
Területi beállítások: hu-HU (hu_HU); Felület nyelve: hu-HU
Calc: CL


Bibisected using bibisect-win64-6.4 to:
URL: https://cgit.freedesktop.org/libreoffice/core/commit/?id=8c1dc30cc9fc96ef3d3ab0c4445959473248ae4d 

tdf#125444 Percentage as custom chart label

Not really a regression, because it was differently bad before.
Comment 1 NISZ LibreOffice Team 2020-07-16 14:00:08 UTC
Created attachment 163118 [details]
Screenshot of the original document side by side in Excel and Calc
Comment 2 Xisco Faulí 2020-07-16 14:35:02 UTC
Reproduced in

Version: 7.1.0.0.alpha0+
Build ID: d851a02df57ab378ed0cc6d9362516de09c3279c
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 Commit Notification 2020-07-27 12:11:31 UTC
Tünde Tóth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c0fac974cefffb16e811259fbc66148712533190

tdf#134866 Chart OOXML import: fix percentage in custom pie chart label

It will be available in 7.1.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.