Bug 151075 - FILEOPEN XLSX: Outline Folding/Expanding is not correct
Summary: FILEOPEN XLSX: Outline Folding/Expanding is not correct
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:xlsx
Depends on:
Blocks: Group&Outline
  Show dependency treegraph
 
Reported: 2022-09-20 09:36 UTC by Kevin Suo
Modified: 2023-07-19 19:58 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
side by side comparison (223.64 KB, application/pdf)
2022-09-20 10:15 UTC, Kevin Suo
Details
outline.ods file exported to .xlsx by MS Excel (6.76 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2022-09-20 17:29 UTC, Bartosz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Suo 2022-09-20 09:36:51 UTC
Steps to Reproduce:

1. Download the following ods file:
https://cgit.freedesktop.org/libreoffice/core/plain/sc/qa/unit/data/ods/outline.ods
(or you may use the one included in sc/qa/unit/data/ods/outline.ods or our code base)

2. Open with Calc.
Observe that the outline for the colums A:Z (i.e. the 1st level column outline) is expanded.

3. Save a copy as xlsx, then open the xlsx in Calc.

Current Result:
The outline for the colums A:Z is folded in step 3.

Expected Result:
The outline for the colums A:Z is expanded in step 3, same as what it appears in step 2.

Reproduced on current master, 7.4 branch, 7.3. The earliest version I can reproduce is  574c57090642347980d2395e1e183cc7b5c171ad (7.0.0 alpha1), but may be much older though.

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 2f1ad908310918d964b2996ccf4e987b7b0af86f
CPU threads: 8; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: zh-CN (zh_CN.UTF-8); UI: en-US
Build Platform: Fedora34@X64, Branch:master, bibisect-linux-64-7.4-CN
Calc: threaded
Comment 1 Kevin Suo 2022-09-20 10:10:19 UTC
This seems to be a FILEOPEN issue rather than a FILEOPEN issue. Unzip the xlsx file indicates that the columns information is correct:

xl/worksheets/sheet1.xml

<cols>
  <col collapsed="false" customWidth="false" hidden="false" outlineLevel="1" max="2" min="1" style="0" width="11.23"/>
  <col collapsed="false" customWidth="false" hidden="true" outlineLevel="2" max="3" min="3" style="0" width="11.23"/>
  <col collapsed="false" customWidth="true" hidden="true" outlineLevel="2" max="4" min="4" style="0" width="3.92"/>
  <col collapsed="false" customWidth="false" hidden="true" outlineLevel="3" max="6" min="5" style="0" width="11.23"/>
  <col collapsed="false" customWidth="false" hidden="true" outlineLevel="4" max="7" min="7" style="0" width="11.23"/>
  <col collapsed="false" customWidth="true" hidden="true" outlineLevel="4" max="8" min="8" style="0" width="3.92"/>
  <col collapsed="false" customWidth="false" hidden="true" outlineLevel="4" max="19" min="9" style="0" width="11.23"/>
  <col collapsed="true" customWidth="false" hidden="true" outlineLevel="3" max="20" min="20" style="0" width="11.23"/>
  <col collapsed="false" customWidth="false" hidden="true" outlineLevel="3" max="21" min="21" style="0" width="11.23"/>
  <col collapsed="false" customWidth="false" hidden="true" outlineLevel="2" max="23" min="22" style="0" width="11.23"/>
  <col collapsed="true" customWidth="false" hidden="false" outlineLevel="1" max="24" min="24" style="0" width="11.23"/>
  <col collapsed="false" customWidth="false" hidden="false" outlineLevel="1" max="26" min="25" style="0" width="11.23"/>
</cols>

i.e., only columns 20 (T) and 24 (X) are set to be collapsed.

Also, this xlsx file opens fine in MSO Excel 2010
Comment 2 Kevin Suo 2022-09-20 10:15:21 UTC
Created attachment 182567 [details]
side by side comparison
Comment 3 Rafael Lima 2022-09-20 14:13:32 UTC
Repro with

Version: 7.4.1.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.4.1~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded

Also repro with

Version: 7.2.7.2 / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL

And with

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 35702fd6781542f5eefbd3710304ab9a25ac61fe
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded
Comment 4 Bartosz 2022-09-20 17:29:16 UTC
Created attachment 182576 [details]
outline.ods file exported to .xlsx by MS Excel