Bug 168266 - Layout issues when FILEOPEN .ODT files in LibreOffice 24.8 (regression from 24.2)
Summary: Layout issues when FILEOPEN .ODT files in LibreOffice 24.8 (regression from...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2025-09-03 13:04 UTC by JulienC
Modified: 2025-09-08 18:45 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Original .ODT document — created using LibreOffice 7.x (144.76 KB, application/vnd.oasis.opendocument.text)
2025-09-03 13:04 UTC, JulienC
Details
PDF exported from LibreOffice 7.x — shows correct layout (45.71 KB, application/pdf)
2025-09-03 13:08 UTC, JulienC
Details
PDF exported from LibreOffice 24.8 — shows broken layout with text overflow (87.66 KB, application/pdf)
2025-09-03 13:08 UTC, JulienC
Details

Note You need to log in before you can comment on or make changes to this bug.
Description JulienC 2025-09-03 13:04:35 UTC
Created attachment 202675 [details]
Original .ODT document — created using LibreOffice 7.x

I encountered a layout regression when opening an ODT document created with an earlier version of LibreOffice (7.x) on Ubuntu 22.04.5 LTS. The document was originally created and saved using the default LibreOffice version shipped with Ubuntu (likely 7.3 or 7.5), and the formatting appeared correct.

However, when I opened the same document using LibreOffice 24.8 (installed via PPA on the same PC or on an other PC running Windows 11), the layout was significantly broken:

    Text boxes overflow with no line wrapping.

    General formatting appears disrupted compared to the original version.

I reproduced the issue both at home and at work using LibreOffice 24.8. Another user confirmed that the document opens correctly in LibreOffice 24.2.7.2, suggesting the regression was introduced between versions 24.2 and 24.8.

While I have a PDF version of the document that remains usable, this issue could affect many of my other ODT files. It's the first time I've encountered such incompatibility between LibreOffice versions using the native format.

Steps to Reproduce:

    Create or open an ODT document with text boxes using LibreOffice 7.x.

    Save the document.

    Open the same document in LibreOffice 24.8.

    Observe layout issues (text overflow, broken formatting).

Expected Result:

Document layout should remain consistent across LibreOffice versions, especially when using the native ODT format.

Actual Result:

Layout breaks in LibreOffice 24.8 — text boxes overflow and formatting is lost.

System Info:

    Original system: Ubuntu 22.04.5 LTS with LibreOffice 7.x

    Affected system: Ubuntu 22.04.5 LTS with LibreOffice 24.8 (via PPA)
                     Windows 11 with LibreOffice 24.8

    Confirmed working in: LibreOffice 24.2.7.2

Attachments:

I have included the following file to illustrate the issue:

    Original .ODT document — created using LibreOffice 7.x

I'll post soon 2 pdf showing the 2 layout.
Comment 1 JulienC 2025-09-03 13:08:13 UTC
Created attachment 202676 [details]
PDF exported from LibreOffice 7.x — shows correct layout
Comment 2 JulienC 2025-09-03 13:08:56 UTC
Created attachment 202677 [details]
PDF exported from LibreOffice 24.8 — shows broken layout with text overflow
Comment 3 Arnaud Versini 2025-09-03 13:09:51 UTC
Fine with 24.2.7, wrong with 24.8.0
Comment 4 Arnaud Versini 2025-09-03 16:09:24 UTC
bibisect result

git bisect start
# status : en attente d'un commit bon et d'un commit mauvais
# good: [9ccb471ad3b2c09515cba37653730e184789b58a] source 898d5d470e24a55556f2fb244fec24df33ba8855
git bisect good 9ccb471ad3b2c09515cba37653730e184789b58a
# status : en attente d'un mauvais commit, 1 commit bon connu
# bad: [309975d3e0b746425bcd05bae7563c671bf31fb5] source 8d05df79004424e9a8ef5592fc74052cacc4df11
git bisect bad 309975d3e0b746425bcd05bae7563c671bf31fb5
# good: [2d914e074f02e2427fd3c3da1943e039d8e7fe3e] source a44e066c9e587dc87fd2563f3e9454e9e92dcde7
git bisect good 2d914e074f02e2427fd3c3da1943e039d8e7fe3e
# good: [78f159d0315c054a116a8ea0b0387def44a166f9] source d561f52ac8e5355c4a50f38beb81b6aff9255cca
git bisect good 78f159d0315c054a116a8ea0b0387def44a166f9
# good: [5d8546044fcb5b0c096b52fcb86e4c0cad73d39a] source e7ec197706700c260cc53713027c56d73e6f16c1
git bisect good 5d8546044fcb5b0c096b52fcb86e4c0cad73d39a
# bad: [f615cfb079b9476c729c6e99132e1dda37670aac] source 42d76a89f2730626446cc3bc85cbbaab49bbcb9d
git bisect bad f615cfb079b9476c729c6e99132e1dda37670aac
# bad: [6da970e9ff4fc4ec8f085665cd440b78c75c6734] source 14abfac4efed74876ea9f2ed3d6fa4105a508c52
git bisect bad 6da970e9ff4fc4ec8f085665cd440b78c75c6734
# bad: [cb4c6677878bd38d10a099859422b7ca94764f1a] source 7f7cfc333bca65a2290bb55354ba0b3abd53044c
git bisect bad cb4c6677878bd38d10a099859422b7ca94764f1a
# bad: [f01234a1b0dda1a7c435ddb064fb40fd160323b6] source 756c3e58c70427cc3dac1287cf0d4f36e45fc0d0
git bisect bad f01234a1b0dda1a7c435ddb064fb40fd160323b6
# good: [69a0661ad17d0dead99510841db55bc86e5d5263] source 640e1aa6df86cfe61f638b3988fe8cc8a25ce1e5
git bisect good 69a0661ad17d0dead99510841db55bc86e5d5263
# bad: [a4c5f37ee6d0922213e7acabeb7d70ded54f46e7] source 3d26a384539e6e67a6e7ed0e08a29fd2a69b6ed6
git bisect bad a4c5f37ee6d0922213e7acabeb7d70ded54f46e7
# good: [06bf138055d2a4629f24482fb789c9373f700080] source 70a34d6b8bb4a4ecc89f1ceafaa2ea5d3a67acf8
git bisect good 06bf138055d2a4629f24482fb789c9373f700080
# bad: [01240e9b3d64240074e8a3af424c4e6ef9d91c7a] source 9478aa91f85545aef89bd6b7e7ab67d95326403b
git bisect bad 01240e9b3d64240074e8a3af424c4e6ef9d91c7a
# good: [b9d7adcf8d8ad1b8f941915b277983d9cd3af918] source 4bee213c000e9775101d7bb95fd36d98e8d982e6
git bisect good b9d7adcf8d8ad1b8f941915b277983d9cd3af918
# first bad commit: [01240e9b3d64240074e8a3af424c4e6ef9d91c7a] source 9478aa91f85545aef89bd6b7e7ab67d95326403b
Comment 5 Arnaud Versini 2025-09-03 18:43:14 UTC
The issue is from commit https://git.libreoffice.org/core/+/9478aa91f85545aef89bd6b7e7ab67d95326403b

Miklos, any idea ?
Comment 6 Arnaud Versini 2025-09-03 19:32:48 UTC
I'm not sure but it seems the document was based on bad behavior from LibreOffice