Bug 143811

Summary: "Repeat heading" setting in table overlaps repeated header text if there's merged/split cells
Product: LibreOffice Reporter: Jim Nissen <jimson1969>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: buzea.bogdan, kuraga333, stephane.guillou, vmiklos
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=158347
https://bugs.documentfoundation.org/show_bug.cgi?id=106107
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103100    
Attachments: What it looks like on Mac
What the same page looks like on Widows Libreoffice
Santized doc with issue on pg 21
LO 7.1.5.2
minimal reproducer ODT

Description Jim Nissen 2021-08-10 14:14:49 UTC
Created attachment 174183 [details]
What it looks like on Mac

We use Libreoffice for many of our installation documentation, and it all contains many multipage tables, in a "check list" format.  Lately, especially on Mac, the table headers and text are malformed, as shown in the "image003.png" attachment.  The image001.png attachment is the same page, from a Windows user.
Comment 1 Jim Nissen 2021-08-10 14:15:51 UTC
Created attachment 174184 [details]
What the same page looks like on Widows Libreoffice
Comment 2 Jim Nissen 2021-08-10 14:32:25 UTC
I just downgraded to version 7.0.6.2, and it doesn't malform the same page.
Comment 3 steve 2021-08-11 09:15:44 UTC
Can you please attach a sanitized sample document to reproduce and hopefully fix this problem.
Comment 4 steve 2021-08-11 09:17:12 UTC
And another question: you reported 7.1.3.2 as first broken version for this regression. How are 7.1.5 and 7.2.0RC2 behaving from https://www.libreoffice.org/download/download/?
Comment 5 Jim Nissen 2021-08-16 16:37:03 UTC
I had previously tried upgrading to 7.1.5, and had same issue.  I just upgraded to 7.2.0RC2, and same issue.  I am attaching a sanitized document that shows the problem.  Page 21 shows the table with headers in middle of the block of table, and text that overlaps columns.
Comment 6 Jim Nissen 2021-08-16 16:38:01 UTC
Created attachment 174325 [details]
Santized doc with issue on pg 21
Comment 7 steve 2021-08-16 17:33:09 UTC
Created attachment 174326 [details]
LO 7.1.5.2
Comment 8 steve 2021-08-16 17:33:35 UTC
Confirmed on 7.1.5.2, screenshot attached -> NEW
Comment 9 Jim Nissen 2022-05-23 20:24:27 UTC
Were are we at with this bug fix?  I just hit it again, and even on the previous version (7.0.6.2), that used to work around it.
Comment 10 Stéphane Guillou (stragu) 2024-05-30 15:38:36 UTC
(In reply to steve from comment #7)
> Created attachment 174326 [details]
> LO 7.1.5.2
I see the same on macOS, and on Linux:

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 6084962f93efc005b6827edceae12d3170f17ccd
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

But also in LO 7.0.0.3 and in OOo 3.3, so I don't see the regression Jim see.

It has to do with the "Repeat header" setting, which is set to repeat one single row, but you'll see that it actually consists of two rows in page 20, with some cells merged.
If repeat heading is set to 2 rows, the overlap is gone.
That was also mentioned in bug 158347.
Comment 11 Stéphane Guillou (stragu) 2024-05-30 15:41:16 UTC
Created attachment 194460 [details]
minimal reproducer ODT

See this minimal example: If a cell (B1) in the repeated header row was split horizontally, the text of the A1 cell ends up being overlapped in the cell below in the next page (and in this case, vertically centred over it.
Comment 12 Stéphane Guillou (stragu) 2024-05-30 15:44:15 UTC
Miklos, please see the minimal reproducer in comment 11.
Can you think of a more elegant way to deal with this? Sure, the user should probably change the setting to repeating 2 rows instead of 1 at this stage, but I still think this overlap/overflow into the next cell (and inheriting of alignment properties) looks bad and needs fixing. For example, by not repeating the cell A1 text at all.
Comment 13 Miklos Vajna 2024-05-31 06:27:50 UTC
Yes, probably once it's not reasonable to provide what the user wants, we should just stop taking the "repeat heading" request from the user. I think we already do this when the header itself is larger than the page, for example. This would likely solve the overflow part as well.