Bug 161001

Summary: DOCX nested table popped out of surrounding table
Product: LibreOffice Reporter: nengxing_xu <nengxing_xu>
Component: filters and storageAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: aron.budea, stephane.guillou, vmiklos
Priority: medium Keywords: bibisected, bisected, filter:docx, regression
Version: 7.6.6.3 release   
Hardware: x86-64 (AMD64)   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=159453
Whiteboard:
Crash report or crash signature: Regression By: Miklos Vajna
Bug Depends on:    
Bug Blocks: 104444    
Attachments: Image show error
source word file
Minimal reproducer
PoC patch

Description nengxing_xu 2024-05-09 02:42:52 UTC
Description:
Word to PDF, move table content up

Actual Results:
Word to PDF, move table content up

Expected Results:
Word to PDF conversion, table content correct


Reproducible: Always


User Profile Reset: Yes

Additional Info:
No more information
Comment 1 nengxing_xu 2024-05-09 02:44:19 UTC
Created attachment 194042 [details]
Image show error
Comment 2 nengxing_xu 2024-05-09 02:44:48 UTC
Created attachment 194043 [details]
source word file
Comment 3 Stéphane Guillou (stragu) 2024-05-09 05:31:31 UTC
Thanks for the report!

I can reproduce at fileopen in a recent daily build:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 92815f3a464b447898ecf52492247335228e4a72
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

...and 7.6.6, but not in 7.5.9 -> regression.

Also on Windows 11.

Bibisected with linux-64-7.6 repo to first bad build [1235fa4aa4d7ffa258bdffae06299ef14ce19016] which points to f1307f09e60e715877769e9fa12c0a6313fa0c1a which is a cherrypick of:

commit f74a6ef94ac957e4c146fc9923d30ce6bd31b5ce
author	Miklos Vajna 	Tue Feb 13 08:09:23 2024 +0100
committer	Miklos Vajna 	Tue Feb 13 10:00:30 2024 +0100
tdf#159453 sw floattable: fix unexpected overlap of in-header fly and body text
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163290

Miklos, can you please have a look?
Comment 4 Miklos Vajna 2024-06-10 14:06:17 UTC
Created attachment 194630 [details]
Minimal reproducer

I attach a smaller reproducer.
Comment 5 Miklos Vajna 2024-06-10 14:07:31 UTC
Created attachment 194631 [details]
PoC patch

I attach a naive patch that solves the problem, but then this makes

make -C sw -sr CppunitTest_sw_core_layout CPPUNIT_TEST_NAME=testSplitFlyNestedRowSpan

hang, so this needs more time.