Bug 143607 - FILEOPEN [RTF] Table cell at bottom of page missing (not displaying on current or next page)
Summary: FILEOPEN [RTF] Table cell at bottom of page missing (not displaying on curren...
Status: RESOLVED DUPLICATE of bug 108073
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2021-07-29 15:56 UTC by Gaven
Modified: 2021-08-22 01:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Missing table cell (question answer) in question 4.6 (155.51 KB, application/rtf)
2021-07-29 15:56 UTC, Gaven
Details
Example of bug in 5.2.7.2 (154.06 KB, image/png)
2021-07-29 15:59 UTC, Gaven
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gaven 2021-07-29 15:56:33 UTC
Created attachment 173952 [details]
Missing table cell (question answer) in question 4.6

When a table cell is exactly at bottom of page, the next cell does not appear at all on page or move to next page.

See attached obfuscated document. BUG ***In question 4.6 the answer cell is not displayed at all***

Each question has a header (grey) cell and an answer (white) cell.

If you move the question up or down document (by eg. entering any new line in questions before this to move it down the document), then the entire question 4.6 will appear on the page. Only happens in this exact location on page.

The content of question 4.6 actually is below bottom of page - you can select it by clicking in footer area and using ctrl-A to see it highlighted off page!

This bug seems to only happen when a table cell is exactly at bottom of page. There is nothing special about 4.6 - can happen any question. Happens on other documents.

I have tested this on various versions 5.2.7.2, 6.3.3 and 7.0.6.2 - all behave exactly the same (although 5.2.7.2 would not display this document correctly, it would only display original non-obfuscated version)

The original RTF generated by our application is a lot simpler and half the size of attached document which was saved as RTF from within Writer 7.0.6.2 but not easy to obfuscate it for sharing.


THIS IS CRITICAL PRODUCTION BUG FOR US AND OUR CLIENTS AND WE WILL PAY MONEY TO GET IT FIXED ASAP. PLEASE LET ME KNOW WHO TO TALK TO ABOUT THIS.
Comment 1 Gaven 2021-07-29 15:59:40 UTC
Created attachment 173953 [details]
Example of bug in 5.2.7.2

This is same bug in 5.2.7.2 in original document generated by our application (had to cover areas of text in green here for privacy)
Comment 2 Timur 2021-07-30 08:30:51 UTC
No repro 5.1. Repro 5.2 and 7.3+.
Can be fixed with "Allow row to break across pages".

As for fixing this, see https://www.documentfoundation.org/gethelp/developers/.
I guess Miklos Vajna and Justin Luth are the proper choice for this.
Comment 3 Timur 2021-07-30 09:15:51 UTC
Bug was reported for Windows and change there was in LO 5.2.
Change in Linux was from 6.3.
commit 67a66df53a664d678060379e3328a4658276ae47
source 3c1f6fc029ab8ff9129f2316a3d7c81bc7b69125
tdf#125719 sw: rtf: refactor associated character properties
Change is different font size (improvement) and reflow (this bug). 
I'll mark regression, although not sure, may be just revealed something like in bug 108073, but I cannot recreate in previous LO.
Comment 4 Gaven 2021-07-30 14:03:35 UTC
Hello Timor, 

I did investigation after reading your comment "Can be fixed with "Allow row to break across pages"."

I can confirm that removing "\trkeep" (Table row keep together. This row cannot be split by a page break. This property is assumed to be off unless the control word is present.) from the code we use to generate the RTF output from our system fixes the missing question problem.

This will have to do for now as emergency workaround, but I would still like to be able to put it back in some time.

Reason it is there is to keep the gray question header cell in one block and not have it split over two pages.

After removing the \trkeep control word, the gray question header now splits over two pages.
Comment 5 Aron Budea 2021-08-22 01:15:52 UTC
Yes, I think we can safely say this is duplicate of bug 108073. It doesn't depend on file format, but on position of table row and table settings.

*** This bug has been marked as a duplicate of bug 108073 ***