Bug 102012 - FILEOPEN DOCX Frame with table inside it positioned wrong
Summary: FILEOPEN DOCX Frame with table inside it positioned wrong
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: low normal
Assignee: Not Assigned
URL:
Whiteboard: interoperability
Keywords: bibisected, bisected, filter:docx, regression
: 93515 (view as bug list)
Depends on:
Blocks: DOCX-Floatingtable
  Show dependency treegraph
 
Reported: 2016-09-09 08:53 UTC by Paolo Devoti
Modified: 2023-04-25 13:06 UTC (History)
10 users (show)

See Also:
Crash report or crash signature:


Attachments
test case document (914.55 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-09-09 08:55 UTC, Paolo Devoti
Details
Screenshot from Robert Markowitz showing version of Libre Office (20.94 KB, image/png)
2016-10-07 22:07 UTC, Robert Markowitz
Details
test case - screenshot with the bug effect and version (277.43 KB, image/jpeg)
2016-10-08 06:18 UTC, Paolo Devoti
Details
another testcase document (913.39 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-10-22 06:04 UTC, Paolo Devoti
Details
PDF exported from office.com (172.01 KB, application/pdf)
2023-04-23 09:40 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Devoti 2016-09-09 08:53:26 UTC
Attached document have content mangled on open.

First page have two tables overlapped and second page is empty, third page looks ok.
Comment 1 Paolo Devoti 2016-09-09 08:55:08 UTC
Created attachment 127229 [details]
test case document
Comment 2 Buovjaga 2016-10-01 19:10:53 UTC
I confirm.

It is shown ok in 3.6, so regression.

I'm pretty sure there is an existing report for such "table inside frame", but could not find one. There is bug 69515, but it seems different. Well, bibisecting will reveal the truth.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha0+
Build ID: dc41255dc725dfa912326cc5d9e420bd66471c64
CPU Threads: 8; OS Version: Linux 4.7; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on October 1st 2016

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)
Comment 3 Buovjaga 2016-10-07 18:47:41 UTC
*** Bug 93515 has been marked as a duplicate of this bug. ***
Comment 4 Robert Markowitz 2016-10-07 22:04:16 UTC Comment hidden (no-value)
Comment 5 Robert Markowitz 2016-10-07 22:07:55 UTC Comment hidden (no-value)
Comment 6 Buovjaga 2016-10-08 05:42:54 UTC
Robert: I am talking apples + apples. The root cause of your issue is the same as Paolo's here: the DOCX has frame objects inside table cells and the frame objects slip on top of each other.

The DOCX is displayed correctly in LibreOffice 3.6 and thus it is a regression. Therefore we can use this clever method to pinpoint the exact cause: https://wiki.documentfoundation.org/QA/Bibisect

Adding keywords as I apparently forgot!
Comment 7 Paolo Devoti 2016-10-08 06:18:00 UTC
Created attachment 127874 [details]
test case - screenshot with the bug effect and version
Comment 8 Robert Markowitz 2016-10-08 14:45:32 UTC Comment hidden (no-value)
Comment 9 Buovjaga 2016-10-08 14:52:55 UTC Comment hidden (no-value)
Comment 10 Xisco Faulí 2016-10-08 15:03:19 UTC
Regression introduced by

author	Zolnai Tamás <tamas.zolnai@collabora.com>	2014-02-17 13:43:15 (GMT)
committer	Zolnai Tamás <tamas.zolnai@collabora.com>	2014-02-17 16:22:28 (GMT)
commit f4ae06c6b558628457f3abdade1f2a705bf8b886 (patch)
tree 9cdcf12b2c9df8f23fbf4fb0d4c85aa4d21958f1
parent 7d040153e8929f4a5a3362f04cd25e6ddb4d9f2c (diff)

DOCX import: fix position of floating tables

which is the same as in bug 101650. However, I'd rather not to close this as duplicate of that one.

Adding Cc: to Zolnai Tamás
Comment 11 Paolo Devoti 2016-10-22 06:04:14 UTC
Created attachment 128147 [details]
another testcase document
Comment 12 Timur 2016-11-08 12:06:16 UTC Comment hidden (obsolete)
Comment 13 QA Administrators 2018-02-01 03:45:03 UTC Comment hidden (obsolete)
Comment 14 Paolo Devoti 2018-02-01 06:25:11 UTC
Still true with libreoffice

Version: 5.4.3.2 (x64)
Build ID: 92a7159f7e4af62137622921e809f8546db437e5
CPU threads: 8; OS: Windows 6.1; UI render: default; 
Locale: it-IT (it_IT); Calc: group
Comment 15 Oliver Sander 2018-02-01 09:19:56 UTC
Confirmed in

Version: 6.1.0.0.alpha0+
Build ID: 1056f14525c5f2cf2e73d461b1aa5e7d763cd1d0
CPU threads: 4; OS: Linux 4.14; UI render: default; VCL: kde4; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2018-02-01_00:56:28
Locale: de-DE (de_DE.UTF-8); Calc: group
Comment 16 Robert Markowitz 2018-02-06 03:40:27 UTC
Problem is still very much there. Considering its age, would appreciate it if you can raise the priority.
Comment 17 QA Administrators 2019-02-19 03:43:01 UTC Comment hidden (obsolete)
Comment 18 Paolo Devoti 2019-02-19 05:37:49 UTC
Still true openinng the attached testcase with libreoffice

Version: 6.1.5.2 (x64)
Build ID: 90f8dcf33c87b3705e78202e3df5142b201bd805
CPU threads: 8; OS: Windows 6.1; UI render: default; 
Locale: it-IT (it_IT); Calc: group threaded
Comment 19 Timur 2020-01-17 10:14:53 UTC
(In reply to Timur from comment #12)
> Test case: tables are wrongly created and it's also known "wrap" problem. 
> I'll set to "low". It looked better in LO 4.2. 
> I think it also suffers from Bug 94801.

Text in cells issue is resolved in Bug 94801. Tables are still overlapping in 6.5+.
Comment 20 QA Administrators 2023-01-12 03:20:31 UTC Comment hidden (obsolete)
Comment 21 Paolo Devoti 2023-01-12 07:02:03 UTC
Still true with attached test case

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: en-US
Calc: threaded
Comment 22 Roman Kuznetsov 2023-04-21 19:54:53 UTC
The document looks much better in

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5cd9de202765e243e41416802f3e4486b8a96f16
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL threaded

but Writer still shows the second empty page. I don't know should we close this one and file a new bug report.

Buovjaga, what do you think?
Comment 23 Buovjaga 2023-04-23 09:40:17 UTC
Created attachment 186861 [details]
PDF exported from office.com
Comment 24 sockseight 2023-04-25 13:06:58 UTC
Overlapping tables fixed by ce3308a926f036b87515b8cd97d2b197063dc77a

Second page empty fixed by e0017ad2a5b008111b716c0814c5a0c5b0f1e05b

Bibisected with Linux and Windows 7.6 repositories.

Thanks to Miklos Vajna.