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: 2025-07-19 03:10 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
Comment 5 QA Administrators 2025-07-19 03:10:46 UTC
Dear Kevin Suo,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug