Bug 136061 - FILEOPEN DOCX Chart custom label disappears when all fields are disabled
Summary: FILEOPEN DOCX Chart custom label disappears when all fields are disabled
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: All All
: medium normal
Assignee: Balázs Varga
URL:
Whiteboard: target:7.1.0
Keywords:
Depends on:
Blocks: OOXML-Chart
  Show dependency treegraph
 
Reported: 2020-08-24 07:21 UTC by NISZ LibreOffice Team
Modified: 2020-09-02 07:53 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word (37.04 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-08-24 07:21 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document Word before any changes (101.67 KB, image/png)
2020-08-24 07:29 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document side by side in Word and Writer after disabling fields (130.15 KB, image/png)
2020-08-24 07:29 UTC, NISZ LibreOffice Team
Details
Screenshot of the data label with manually deleted fields (133.79 KB, image/png)
2020-08-24 07:30 UTC, NISZ LibreOffice Team
Details
Same problem in XLSX (13.17 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-08-24 07:30 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-08-24 07:21:05 UTC
Created attachment 164617 [details]
Example file from Word

Attached document contains charts where the Category name and Value fields are displayed. 
Some data points the display of these is turned off: the orange data point in the pie chart has only the Value field enabled and some custom text, while the blue contains only custom text and the fields disabled. 
The grey slice contains only custom text, but the fields were not disabled on the data point: only in the label were they deleted.
When opened in Writer (but also happens in Calc with XLSX files) the label with only custom text does not appear.
However it is possible to select that data point and in its context menu selecting “Insert Single Data Label” shows the labels original text content.


Steps to reproduce:
1.	Create a chart in Word, enable data labels
2.	In one of the labels type some custom text
3.	Disable the data fields in the sidebar for that label
4.	Save as DOCX and open the file in Writer

Actual results:
The custom label disappears

Expected results:
The custom label should not disappear

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x86)
Build ID: <buildversion>
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
(nightly from 08-24)

Also happens in:
Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
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

In 6.4 and earlier the orange data point has lost its custom text too, and the “Insert Single Data Label” trick did not work either.
Comment 1 NISZ LibreOffice Team 2020-08-24 07:29:18 UTC
Created attachment 164618 [details]
Screenshot of the original document Word before any changes
Comment 2 NISZ LibreOffice Team 2020-08-24 07:29:48 UTC
Created attachment 164619 [details]
Screenshot of the original document side by side in Word and Writer after disabling fields
Comment 3 NISZ LibreOffice Team 2020-08-24 07:30:03 UTC
Created attachment 164620 [details]
Screenshot of the data label with manually deleted fields
Comment 4 NISZ LibreOffice Team 2020-08-24 07:30:27 UTC
Created attachment 164621 [details]
Same problem in XLSX
Comment 5 Commit Notification 2020-09-02 07:41:53 UTC
Balazs Varga committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/0d2340998415fb4b2f794054c62ef61c83e32155

tdf#136061 Chart ODF/OOXML: fix missing custom labels

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.