Bug 166154 - FILEOPEN DOCX: Header is missing font size on paragraph
Summary: FILEOPEN DOCX: Header is missing font size on paragraph
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.0.3 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected
Depends on:
Blocks: DOCX-Paragraph
  Show dependency treegraph
 
Reported: 2025-04-12 18:14 UTC by Justin L
Modified: 2025-04-12 18:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
tdf96172-1.docx_import-compare-2.png: Overlay where RED=Word 2019 and black=24.8.6 (135.04 KB, image/png)
2025-04-12 18:14 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2025-04-12 18:14:49 UTC
Created attachment 200325 [details]
tdf96172-1.docx_import-compare-2.png: Overlay where RED=Word 2019 and black=24.8.6

On page 2 of Schindler Excellence.docx (attachment 120911 [details] from bug 96172), the header should start with an empty paragraph that has a font-size of 22, and no above spacing (auto spacing).

The size was correct until 5.3 commit 50bf96d31ab2eb546f6c71cc93c1fa5dd4bf3044
Author: Justin Luth on Sat Jun 25 22:21:08 2016 +0300
    tdf#90697 docx - don't change continuous break into page break

which looks like just a side effect that the font-size changed.

The 0.19cm spacing above was finally removed with
24.8 commit 86ad08f9d25110e91e92a0badf6de75e785b3644
Author: Michael Stahl on Thu Feb 1 12:53:07 2024 +0100
    writerfilter: fix missing paragraph break on tdf136445-1.rtf

which also looks like a side effect. Unfortunately, the position of everything on that page depends on these settings, and it just happened to look perfect before mstahl's patch. But I'm sure this is not a true regression in either case - although both might prove helpful code pointers (and bRemove sounds very suspicious).

Steps to reproduce:
1. Open Schindler Excellence.docx  (attachment 120911 [details])

Notice that the first page header is fine - the font is Arial 22.
However, the header of Converted 1 starts with an empty paragraph with Arial 10, when it should have Arial 22.

Found by Collabora's mso-test