https://bugs.documentfoundation.org/show_bug.cgi?id=174461
Bug ID: 174461
Summary: DOCX: header paragraph bottom border not rendered when
the section-break paragraph mark is marked as deleted
(tracked change)
Product: LibreOffice
Version: 26.8.3.1 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
The 0.5 pt paragraph bottom border of a header paragraph (w:pBdr/w:bottom,
sz=4) is not
rendered - neither on screen nor in PDF export - when the paragraph mark of the
paragraph that
carries the section break is marked as deleted by tracked changes (a <w:del/>
element inside
w:pPr/w:rPr, including the second one nested inside w:rPrChange).
Removing exactly those two <w:del/> elements is the only difference between the
failing and the
working document, and the border is rendered again. Both files are 15 KB, fully
synthetic, and
contain no personal data.
STEPS TO REPRODUCE
1. Open repro_bug.docx (attached).
2. Check the page header. Its second paragraph carries
<w:pBdr><w:bottom w:val="single" w:sz="4" w:space="0"/></w:pBdr>
Expected: a thin horizontal line under the header text. Actual: no line at
all, on screen
and in the exported PDF.
3. Open repro_control_ok.docx (attached). It is identical except that the two
<w:del w:id="220"/> / <w:del w:id="222"/> marks inside the section-break
paragraph's
w:pPr/w:rPr are gone. The same border renders correctly here.
EXPECTED RESULT
The header paragraph bottom border is rendered in both documents (as Word
does).
ACTUAL RESULT
repro_bug.docx: border missing. repro_control_ok.docx: border present.
VERIFICATION METHOD (countable, no eyeballing)
Render page 1 at 150 dpi as grayscale PGM (pdftoppm -gray -r 150), then look
for the longest run
of consecutive dark pixels (<200) in any row of the top 30 % of the page. A
text-width A4 border
at 150 dpi is about 1015 px long, so "run >= 900 px" means the border is
present.
repro_bug.docx LO 24.2.7.2: no line LO 26.8.3.1: no line
repro_control_ok.docx LO 24.2.7.2: line at y=187 LO 26.8.3.1: line at
y=187
BISECTION THAT LED HERE (on the original document where this was found)
- Splitting word/document.xml into top-level blocks and dichotomising: the
first 34 blocks render
the border; adding block #35 (an empty paragraph carrying the w:sectPr) makes
it disappear.
- That paragraph's w:pPr/w:rPr contains a tracked deletion of the paragraph
mark:
<w:del w:id="220"/> plus a second <w:del w:id="222"/> nested inside
<w:rPrChange>.
- Removing both <w:del/> elements makes the border render again. Removing only
the outer one,
removing only the rPrChange, dropping the pStyle, accepting the header's own
w:ins/w:del,
enlarging the header margin, removing the second section, or switching to
another header part:
none of these change anything.
- The inline logo image in the first header paragraph is not required: the
repro also fails with
the image removed from that paragraph.
FILES
- repro_bug.docx - fails (no border)
- repro_control_ok.docx - identical except the two <w:del/> marks removed;
border renders
- repro_bug_LO24.2.pdf, repro_bug_LO26.8.pdf - border missing
- repro_control_ok_LO24.2.pdf, repro_control_ok_LO26.8.pdf - border present
NOTES
Regression check: also reproduced on LibreOffice 24.2.7.2, so this is not new
in 26.8.
A w:del on a paragraph mark is what Word writes when a paragraph is deleted
with Track Changes
enabled; the document still has to be laid out and rendered as it currently
looks.
The header in the repro has two paragraphs (one holding an inline PNG with
pBdr=none, one with the
bottom border). Dropping either of the three ingredients (two-paragraph header,
the section-break
paragraph's w:del marks, and a bordered header paragraph) makes the bug
disappear, which is why
the earlier attempts to build a minimal case from scratch did not reproduce it.
--
You are receiving this mail because:
You are the assignee for the bug.