Bug 145651 - FILESAVE OOXML write error if using default colour for chart legend background from sidebar
Summary: FILESAVE OOXML write error if using default colour for chart legend backgroun...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OOXML-Chart Chart-Sidebar Save
  Show dependency treegraph
 
Reported: 2021-11-13 02:03 UTC by Stéphane Guillou (stragu)
Modified: 2021-11-16 01:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
error message (10.89 KB, image/png)
2021-11-13 02:05 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2021-11-13 02:03:41 UTC
Description:
If using the default colour for the legend area colour fill in a chart, saving as ODF works but saving as OOXML triggers a "Write Error" and doesn't let the user save.

Steps to Reproduce:
1. Create a new document with one LibreOffice component that supports chart editing (Impress, Writer, Calc). For these steps, us Impress.
2. Insert a chart (Insert > Chart), or create one that includes a colour key / lengend
3. In chart editing mode, select the legend, use the "sidebar > Area > Fill" and change from "none" to "color". Notice how the default blue that is used does not correspond to the colour in the colour picker right underneath.
4. Save as > OOXML format (in this example, PPTX)

Actual Results:
LibreOffice is unable to save, this error pops up:

Error saving the document xxxxx:
Write Error.
The file could not be written.

Expected Results:
- The colour in the colour picker corresponds to the default LibreOffice blue;
- The chart can be saved in OOXML formats.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Note that:
- Saving as ODF works without problem.
- Changing the legend background colour with "context menu > format legend > Area > Color", leaving the default and pressing "OK" does not reproduce the bug when saving to OOXML, so seems specific to the sidebar.
- Changing the colour to something other than the default will not reproduce the bug either.
- Reproduced with DOCX, PPTX and XLSX

Reproduced in:

Version: 7.3.0.0.alpha1+ / LibreOffice Community
Build ID: c7500945fc5d5bd2130a2d38be0bd4b15445cd90
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 7.3.0.0.alpha1+ / LibreOffice Community
Build ID: c7500945fc5d5bd2130a2d38be0bd4b15445cd90
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 67f2a99229101757af4f40118f4d3c83ba38648b
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: threaded

Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 7.2.1.2 (x64) / LibreOffice Community
Build ID: 87b77fad49947c1441b67c559c339af8f3517e22
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: default; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: threaded

Version: 7.1.7.2 / LibreOffice Community
Build ID: c6a4e3954236145e2acb0b65f68614365aeee33f
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 7.0.6.2
Build ID: 00(Build:2)
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.6-0ubuntu0.18.04.1_lo1
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2021-11-13 02:05:10 UTC
Created attachment 176224 [details]
error message

Screenshot of error message.
Comment 2 Aron Budea 2021-11-16 01:23:38 UTC
Confirmed using LO Version: 7.3.0.0.alpha1+ (e6968f0485cfb2f6c941d11c438386e14a47095d), 5.2 / Ubuntu.