https://bugs.documentfoundation.org/show_bug.cgi?id=174461
--- Comment #11 from Jackli <[email protected]> --- Thanks - verified, your observation is exactly right, and it narrows the trigger down to a single paragraph-mark deletion. Measured on the attached PDFs (page 1, first word of the header text "Document name: ...", PDF user-space coordinates): in repro_bug.docx it starts at x=194.30, y=62.88 - i.e. on the same line as the inline image, to the right of it. In repro_control_ok.docx the same word starts at x=54.10, y=77.28 - at the left page margin, on its own line below the image. So the two header paragraphs are indeed merged in the failing case. Taking this as the lead, I built a smaller case: start from repro_control_ok.docx (border renders) and mark the paragraph mark of the FIRST header paragraph as deleted: <w:pPr> <w:rPr><w:del w:id="900" w:author="tester" w:date="2026-01-01T00:00:00Z"/></w:rPr> <w:pBdr><w:bottom w:val="none" w:color="auto" w:sz="0" w:space="0"/></w:pBdr> </w:pPr> That single element, inside the header itself, is the only difference. Result: the bottom border of the second header paragraph disappears again and the header text jumps to x=194.30, y=62.88, i.e. the same merge happens. Reproduced on 24.2.7.2 and 26.8.3.1 (Linux); per your build IDs the same happens on Windows with 26.8.3.1 and 27.2 dev. So the merge is driven by a tracked deletion of a paragraph mark, and it is not specific to the body: in the original file that mark happens to be on the body paragraph that carries the w:sectPr, while in this new case it is on the first header paragraph itself. Once the two header paragraphs are merged, the surviving paragraph properties are those of the first paragraph (pBdr = bottom, val=none), so the bottom border of the second one is lost. Attachments: repro2_header_para_mark_deleted.docx (14969 bytes) plus PDFs from 24.2.7.2 and 26.8.3.1 showing the missing border. Border presence in all cases was measured by rendering page 1 at 150 dpi as grayscale and looking for a run of >=900 consecutive dark pixels in the header band (<200 on a 0..255 scale); the full-width A4 border is ~1015 px at that resolution. -- You are receiving this mail because: You are the assignee for the bug.
