Bug 93259 - Cannot correctly read cell alignments on simple spreadsheet
Summary: Cannot correctly read cell alignments on simple spreadsheet
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.1.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: MSO-External-Producers
  Show dependency treegraph
 
Reported: 2015-08-07 22:35 UTC by Eric West
Modified: 2025-04-02 18:37 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
spreadsheet with various horizontal and vertical alignments. (3.41 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2015-08-07 22:35 UTC, Eric West
Details
Screenshots comparing cell formatting (24.60 KB, image/png)
2025-04-02 18:25 UTC, Daniel Baran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric West 2015-08-07 22:35:33 UTC
Created attachment 117760 [details]
spreadsheet with various horizontal and vertical alignments.

The attached spreadsheet was generated with Apache POI.  It simply contains
nine cells with different combinations of horizontal and vertical cell alignments. It works fine with MS Excel, but has obviously wrong alignments
when viewed with libreoffice calc. (tried both versions 4.x and 5.0).
If I read the spreadsheet with POI, the cell alignments are also correct.
Comment 1 m_a_riosv 2015-08-08 01:14:34 UTC
Hi @Eric, thanks for reporting.

Win7x64

Last version working:
Version 4.0.6.2 (Build ID: 2e2573268451a50806fcd60ae2d9fe01dd0ce24)

regression with:
Versión: 4.1.6.2 Id. de compilación: 40ff705089295be5be0aae9b15123f687c05b0a
Comment 2 QA Administrators 2016-09-20 10:22:02 UTC Comment hidden (obsolete)
Comment 3 Alex 2016-10-14 11:56:50 UTC
Bug is still present.

LibreOffice Calc 5.2.2
Ubuntu 16.04

Installed using LibreOffice PPA

Info from LibreOffice Calc About:
Version: 5.2.2.2
Build ID: 1:5.2.2-0ubuntu1~xenial0
CPU Threads: 4; OS Version: Linux 4.4; UI Render: default; 
Locale: nb-NO (nb_NO.UTF-8); Calc: CL


In LibreOffice all cells show as aligned Top-Left, in Excel they are aligned from Top-Left through all variations to Bottom-Right.
Comment 4 QA Administrators 2017-10-23 14:06:03 UTC Comment hidden (obsolete)
Comment 5 evanyen 2018-11-29 08:47:52 UTC
Still exists in version

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 0f25a3c36f27fd51453b9a9115f236b83c143684
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-27_20:06:55
Locale: zh-TW (zh_TW); UI-Language: en-US
Calc: threaded
Comment 6 QA Administrators 2019-11-30 03:38:49 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2021-11-30 04:26:58 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2025-03-30 03:12:21 UTC Comment hidden (obsolete)
Comment 9 Daniel Baran 2025-04-02 18:25:10 UTC
Created attachment 200129 [details]
Screenshots comparing cell formatting

Using the Test document in LO 25.2.2.2 the formatting is consistent with Excel.
So it works for me. A screenshot is attached.

Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

For what it's worth; In LO 7.3.5.2 the formatting discrepancy was still present.

Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 12; OS: Windows 10.0 Build 26100; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL