Bug 97947 - FILEOPEN RTF layout problem with table
Summary: FILEOPEN RTF layout problem with table
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTF-Tables
  Show dependency treegraph
 
Reported: 2016-02-17 21:03 UTC by Óvári
Modified: 2024-08-30 19:32 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Óvári 2016-02-17 21:03:55 UTC
Attached government RTF document from bug 97895 does not display correctly:
Births, Deaths and Marriages Registration Act 1997—Form 201-BRS — Birth registration statement
http://www.legislation.act.gov.au/af/2014-46/default.asp

Table on page 3 extends past right page boundary.

Thank you

Linux Mint 17.3 64-bit Cinnamon
LO Version: 5.1.0.3
Build ID: 5e3e00a007d9b3b6efb6797a8b8e57b51ab1f737
CPU Threads: 2; OS Version: Linux 3.19; UI Render: default
Comment 1 Buovjaga 2016-02-18 11:02:59 UTC
Confirmed.

Win 7 Pro 64-bit Version: 5.2.0.0.alpha0+
Build ID: a6f876d45bd4e41a7143594a6cb11b6893a0f620
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-02-11_00:07:38
Locale: fi-FI (fi_FI)
Comment 2 Xisco Faulí 2016-10-08 16:47:03 UTC
tables on page 3 aren't shift to the right on libreoffice 3.5, thus it's a regression. However, the overall layout looks quite bad at that time.
Changing version as this can be already reproduced in Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 3 Aron Budea 2017-01-04 19:55:20 UTC
In 5.3beta2 page 3 has the header is "Birth Registration Statement", the first two fields are "Certificate applied for?" and "Registration Number" and indeed extends beyond right edge.

In 5.1.0.3 a bit of page 2 spills over to page 3, but otherwise the table is the same, and also extends beyond right edge.

In 4.0.0.3 this table is on page 6 (the whole structure is much worse), and also extends beyond right edge.

In 3.5.0.3 the table is on page 4, and extends beyond right edge.

Finally in 3.3.0 the table starts in the middle of page 3, and extends beyond right edge.

Conclusion: not a regression.
Comment 4 QA Administrators 2018-10-06 02:51:11 UTC Comment hidden (obsolete)
Comment 5 Roman Kuznetsov 2018-10-06 07:43:27 UTC
still repro in 

Version: 6.2.0.0.alpha0+
Build ID: 1aa37aa6bee19099b57555a6d839992b054aa405
CPU threads: 4; OS: Windows 10.0; UI render: GL; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-09-23_10:17:54
Locale: ru-RU (ru_RU); Calc: threaded
Comment 6 QA Administrators 2019-10-07 03:02:57 UTC Comment hidden (obsolete)
Comment 7 Óvári 2020-05-31 02:18:01 UTC
still repro in 

LibreOffice
Version: 6.4.4.2
Build ID: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
CPU threads: 2; OS: Linux 5.3; UI render: default; VCL: gtk3

Linux Mint 19.3 Cinnamon 64-bit
Comment 8 QA Administrators 2024-04-09 03:13:23 UTC Comment hidden (obsolete)
Comment 9 Gabor Kelemen (allotropia) 2024-08-30 17:08:39 UTC
The third pages table looks to be in the correct place since:

https://git.libreoffice.org/core/+/5c98966b8318d526bdfbefc77831c051e946231f

commit 5c98966b8318d526bdfbefc77831c051e946231f	[log]
author	Czeber László Ádám <czeber.laszloadam@nisz.hu>	Tue Apr 04 15:07:47 2023 +0200
committer	László Németh <nemeth@numbertext.org>	Fri Apr 21 09:52:02 2023 +0200

tdf#153195 sw RTF import: fix negative indent of table in footer
Comment 10 Gabor Kelemen (allotropia) 2024-08-30 19:32:52 UTC
However, after the previous patch the document was still rendered in 5 pages overall, instead of 4 in Word. 
Until 25.2 commit:

https://git.libreoffice.org/core/+/13cd36248069d32688cfb8adfe0955ca5229e075

author	Oliver Specht <oliver.specht@cib.de>	Tue Jul 09 08:50:46 2024 +0200
committer	Thorsten Behrens <thorsten.behrens@allotropia.de>	Mon Jul 15 20:14:29 2024 +0200

tdf#148554 RTF import - reset borders on fill cells

I don't see huge issues with this file anymore. The table on the first page has "Automatically resize to fit contents" enabled, so there may be small differences in the rendering, but overall it looks pretty good now.

(have not tried to resave it as RTF, that may still be problematic)