Bug 167863 - sw floattable: Virtual bottom borders are not rendered as outer borders in intermediate pages of a table with "Repeat heading rows on new pages" feature toggled that spans for at least 3 pages
Summary: sw floattable: Virtual bottom borders are not rendered as outer borders in in...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Table-Borders
  Show dependency treegraph
 
Reported: 2025-08-08 09:38 UTC by 林博仁 Buo-ren Lin
Modified: 2025-08-08 09:44 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample document created using the attached bug reproduction instructions (10.34 KB, application/vnd.oasis.opendocument.text)
2025-08-08 09:40 UTC, 林博仁 Buo-ren Lin
Details
Sample document created using the attached bug reproduction instructions(PDF export) (65.72 KB, application/pdf)
2025-08-08 09:41 UTC, 林博仁 Buo-ren Lin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 林博仁 Buo-ren Lin 2025-08-08 09:38:42 UTC
Description:
When a text document contains a table:

* That spans **at least** 3 pages
* That is configured with the "Repeat heading rows on new pages" checkbox toggled
* That has outer borders configured

the virtual bottom borders of the intermediate pages are not rendered as outer borders.

This bug is similar to Bug 167861, except that only the virtual bottom borders are not correctly rendered.

Steps to Reproduce:

1. Create a new text document.
2. Select Table > Insert Table... menu option to open the Insert Table dialog.
3. In the Insert Table dialog:
    + In the General section:
        - Fill in `2` in the Columns text field
        - Fill in `120` in the Rows text field.
    + In the Options section:
        - Toggle the Heading checkbox
        - Toggle the Repeat heading rows on new pages checkbox
4. Click the Insert button at the bottom of the window to insert the table and close the Insert Table dialog.  This should create a big table that spans approximately 3 pages(if not, add new rows to the table until it does).
5.
5. Select any cell in the table, then select the Table Properties... option in its contextual(right-click) menu.
6. In the Table Properties dialog, select the "Outer Border Only" preset(check the tooltip of each option) in the Line Arrangement > Presets field of the Borders tab, then set the Thickness field in the Line section to Thick for better observation of the borders.
7. Click the OK button at the bottom to apply the settings and close the Table Properties dialog.
8. Observe the borders on the second page.


Actual Results:
The virtual bottom border of page 2 isn't rendered as an outer border.

Expected Results:
The virtual bottom border of page 2 is rendered as an outer border.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Reproduced in:

Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW
Calc: threaded

Also reproduced in the following development revision:

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e03da71738c72bbaecb824b4ba356a0a9923a0ff
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: zh-TW (zh_TW.UTF-8); UI: en-US
Calc: threaded
Comment 1 林博仁 Buo-ren Lin 2025-08-08 09:40:36 UTC
Created attachment 202245 [details]
Sample document created using the attached bug reproduction instructions
Comment 2 林博仁 Buo-ren Lin 2025-08-08 09:41:11 UTC
Created attachment 202246 [details]
Sample document created using the attached bug reproduction instructions(PDF export)
Comment 3 林博仁 Buo-ren Lin 2025-08-08 09:44:11 UTC
CC-ing Miklós Vajna, as they have dealt with this kind of bug before.

PS. Thanks for the blog post at <https://vmiklos.hu/blog/sw-floattable7.html>, it really helps a lot!