Bug 144088 - SpreadSheetML (Excel 2003 XML) mixed up styles
Summary: SpreadSheetML (Excel 2003 XML) mixed up styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: MSO-XML2003
  Show dependency treegraph
 
Reported: 2021-08-25 18:23 UTC by Simon Williams
Modified: 2023-11-10 21:26 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Original file generated by our software. Cells should not be grey (9.49 KB, text/xml)
2021-08-25 18:25 UTC, Simon Williams
Details
report_ig.xml opened in Excel and re-saved (with extra blue cells added). Calc now incorrectly shows all cells with thick borders (10.96 KB, text/xml)
2021-08-25 18:26 UTC, Simon Williams
Details
New file created with Excel. Each cell should have a different style, Calc shows all cells with brown background. (4.28 KB, text/xml)
2021-08-25 18:27 UTC, Simon Williams
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Williams 2021-08-25 18:23:43 UTC
Description:
Calc mixes up styles in Excel 2003's XML format. The styles from one declaration seem to bleed over into other declarations and affect other cells.

Steps to Reproduce:
1. Create a new spreadsheet in Excel.
2. Apply a selection of different styles to different cells (e.g. one bold, one with background colour, one with borders)
3. Save as Excel 2003 XML format
4. Open in LibreOffice

Actual Results:
Some of the styles bleed over and apply to other cells incorrectly.

Expected Results:
The spreadsheet should look the same as it does in Excel.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
This bug has existed for as far back as I can remember (at least as far back as LibreOffice 4), and has been observed on many different machines and distributions.
Comment 1 Simon Williams 2021-08-25 18:25:21 UTC
Created attachment 174536 [details]
Original file generated by our software. Cells should not be grey
Comment 2 Simon Williams 2021-08-25 18:26:31 UTC
Created attachment 174537 [details]
report_ig.xml opened in Excel and re-saved (with extra blue cells added). Calc now incorrectly shows all cells with thick borders
Comment 3 Simon Williams 2021-08-25 18:27:36 UTC
Created attachment 174538 [details]
New file created with Excel. Each cell should have a different style, Calc shows all cells with brown background.
Comment 4 Екатерина 2021-09-10 12:10:43 UTC
repro in Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: bc7baa18435000f47f90e47d3300710bcb4cf56b
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL
Comment 5 Kohei Yoshida 2023-11-10 21:26:07 UTC
The build from the current master branch (slated to become 24.2) has the latest version of orcus 0.19.2 and does a much better job of importing the styles from the documents attached to this bug.