Bug 146032 - Writer changes the page layout when saving and reopening (breaks a table row across a page)
Summary: Writer changes the page layout when saving and reopening (breaks a table row ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.3.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables
  Show dependency treegraph
 
Reported: 2021-12-03 13:22 UTC by Vincent Lefevre
Modified: 2022-11-23 12:47 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Testcase (43.71 KB, application/vnd.oasis.opendocument.text)
2021-12-03 13:22 UTC, Vincent Lefevre
Details
Incorrect file obtained after adding text and saving (43.67 KB, application/vnd.oasis.opendocument.text)
2021-12-03 13:23 UTC, Vincent Lefevre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lefevre 2021-12-03 13:22:02 UTC
Created attachment 176675 [details]
Testcase

On some odt file, writer changes the page layout when saving and reopening, after adding some text. This breaks a table row across a page. To reproduce:

1. Open file0.odt (attached) with "libreoffice file0.odt".
2. Page 2, in the blank cell on the right of "Nom de l'organisme complémentaire", add some text, e.g. just a period. At this point, the page layout hasn't changed.
3. Save the file with Ctrl-S. At this point, the page layout still hasn't changed.
4. Quit LibreOffice.
5. Reopen the saved file with "libreoffice file0.odt".

Result: The first line of the "Nom de l'organisme complémentaire" table row now appears at the end of page 1 (the end of this row still appears on page 2).

Note: This is a file that comes from Inria in the docx format. I had converted it to odt with this same LibreOffice version. The conversion was apparently fine. The bug occurs only after editing the resulting odt file, saving it and reopening it, as described above.
Comment 1 Vincent Lefevre 2021-12-03 13:23:53 UTC
Created attachment 176676 [details]
Incorrect file obtained after adding text and saving

The file file1.odt is the file I obtain after step 3.
Comment 2 Vincent Lefevre 2021-12-03 13:26:07 UTC
Note: I was using the libreoffice 1:7.2.3-2 Debian package under Debian/unstable.
Comment 3 Rainer Bielefeld Retired 2021-12-04 11:54:06 UTC
REPRODUCIBLE with reporter's sample document, Server Installation of Version: 7.4.0.0.alpha0+ (x64)  Build ID ae36ee4f3aa544e53e2edad93d6d79160b27bc9d
CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win | Special devUserProfile | Locale: de-DE (de_DE); UI: de-DE | Calc: CL

In step (2) I simply typed 2 blank. Following the instruction showed thhe complained effect.
After deletion of blank (Backspace), save, close, relaunch, reopen Nom de l'organisme complémentaire" has moved back to page 2. 

Not yet checked for possible DUPs
Comment 4 Rainer Bielefeld Retired 2021-12-04 14:48:10 UTC
No obvious DUP found iwth this query: <https://bugs.documentfoundation.org/buglist.cgi?cmdtype=dorem&remaction=run&namedcmd=DUPs146032&sharer_id=19321>
Comment 5 Buovjaga 2022-11-23 12:47:28 UTC
Reproduced with the original instructions - adding two newlines was not enough.

The table is already split on two pages in older versions.

Arch Linux 64-bit
Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 25e9766e9b87342b6f1b29dc146d5f33e12157a7
CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 23 November 2022