Bug 127752

Summary: Lines cut off or hidden after reflow due to adding/removing footer in two-column page
Product: LibreOffice Reporter: Eyal Rozenberg <eyalroz1>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: xiscofauli
Priority: medium    
Version: 4.1 all versions   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=135991
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 43808    
Attachments: Document exhibiting the bug
Screenshot: Bottom line cut off after footer created
Screenshot: Page top cut off after footer deleted

Description Eyal Rozenberg 2019-09-24 22:22:37 UTC
Reproduction instruction
------------------------

1. Open the attached document. It has a Heading 2 line just before the end of the first (rightmost) column on the first page; that line's text is "Third H2 line".
2. Be in Page Layout view.
3. Scroll to the bottom of the first page.
4. Create a Footer (default settings; either using the Footer pop-up at the bottom of the page, or through the menus: Format|Page|Footer). The "Third H2 line" has reflowed to the second (leftmost) column on the first page.
5. Delete the footer (either using the drop-down menu of the Footer pop-up box, or through the menus: Format|Page|Footer).

Expected outcome
----------------

After the footer is created, all lines of text are fully rendered, somewhere.

After the footer is deleted, The "Third H2 line" is again rendered at the bottom of the first column. Also, the top of the first column, with a "First H2 line" line, is visible.

Actual outcome
--------------

After the footer is created, the bottom line of text is cut off in mid-line, i.e. only the top part of it is rendered. See attached screenshot.

After the footer is deleted, there seems to be no reflow, but rather some weird sort of up-shifting of the entire text area, of both columns. Additionally, the upper lines of the two columns are now hidden behind a white area - the margin perhaps?

If we save the document, close it and reload, the rendering is valid again.
Comment 1 Eyal Rozenberg 2019-09-24 22:24:42 UTC
Created attachment 154463 [details]
Document exhibiting the bug
Comment 2 Eyal Rozenberg 2019-09-24 22:26:16 UTC
Created attachment 154464 [details]
Screenshot: Bottom line cut off after footer created
Comment 3 Eyal Rozenberg 2019-09-24 22:27:22 UTC
Created attachment 154465 [details]
Screenshot: Page top cut off after footer deleted
Comment 4 Eyal Rozenberg 2019-09-24 22:30:20 UTC
Seen with:

Version: 6.3.2.1
Build ID: 1:6.3.2~rc1-1
CPU threads: 4; OS: Linux 5.2; UI render: default; VCL: gtk3; 
Locale: he-IL (en_IL); UI-Language: en-US
Comment 5 Xisco Faulí 2019-09-26 10:53:40 UTC
Reproduced in

Version: 6.4.0.0.alpha0+
Build ID: 186d36a7036462ae641b35004b4ffba3eeeca46f
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 6 Xisco Faulí 2019-09-26 10:54:16 UTC Comment hidden (obsolete)
Comment 7 Xisco Faulí 2019-09-26 10:54:29 UTC Comment hidden (obsolete)
Comment 8 Xisco Faulí 2019-09-26 10:56:35 UTC
Also reproducible in

Version: 5.2.0.0.alpha1+
Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.15; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 9 QA Administrators 2021-09-26 03:57:27 UTC Comment hidden (obsolete)
Comment 10 Eyal Rozenberg 2021-09-27 08:30:16 UTC
On Windows, I am partially able to reproduce this: Opening the file, I see the third H2 line at the top of the second (leftmost) column on the first page. When I add a footer, then delete one of the lines between the second and third H2's, then delete the footer - the third H2 line and the first H2 line are cut off at the top of the page.

Version: 7.1.5.2 (x64) / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_IL); UI: en-US