Bug 109297 - FILEOPEN: DOCX: The table and text go over the border of A4 page
Summary: FILEOPEN: DOCX: The table and text go over the border of A4 page
Status: RESOLVED DUPLICATE of bug 123757
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Tables
  Show dependency treegraph
 
Reported: 2017-07-24 05:29 UTC by sunweb
Modified: 2020-06-03 11:26 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
where you can see a bug (19.66 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-07-24 05:29 UTC, sunweb
Details
how it looks in Microsoft Office 2010 (44.43 KB, image/png)
2017-07-24 05:33 UTC, sunweb
Details
Original bugdoc with tables separated by paragraphs (20.02 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-07-27 18:03 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunweb 2017-07-24 05:29:46 UTC
Created attachment 134805 [details]
where you can see a bug

Open this file. The table and text go over the border of A4 page. In Microsoft Office it displays correctly.
I know docx is not fully ready or is top priority just letting you know.
Comment 1 sunweb 2017-07-24 05:33:27 UTC
Created attachment 134806 [details]
how it looks in Microsoft Office 2010
Comment 2 Xisco Faulí 2017-07-24 13:28:17 UTC
Confirmed in

- Version: 6.0.0.0.alpha0+
Build ID: bde72cdae1e7e001d5089c5284672c976b8e43df
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk2; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

- Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

- Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 3 Mike Kaganski 2017-07-27 18:03:10 UTC
Created attachment 134911 [details]
Original bugdoc with tables separated by paragraphs

This is caused by LibreOffice considering consecutive tables not separated by paragraphs as single table. The resulting table has dimensions that are combination of dimensions of original tables.

Attached is original file with document.xml slightly modified: single w:p elements are inserted between existing tables. This way, the result is almost perfect (modulo extra paragraphs absent in original).
Comment 4 QA Administrators 2018-10-13 03:14:54 UTC Comment hidden (obsolete)
Comment 5 Dieter 2018-10-13 04:52:37 UTC
Still reproducible in

Version: 6.2.0.0.alpha0+ (x64)
Build ID: 48cfa0b00b22f11ade53aec79b2fdddad253e1bd
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-03_02:01:42
Locale: en-US (de_DE); Calc: CL
Comment 6 QA Administrators 2019-10-14 02:27:20 UTC Comment hidden (obsolete, spam)
Comment 7 Justin L 2020-06-03 11:26:08 UTC
fixed in LO 7.0 by commit d5aeb48c7035c5518c4978760e93a49351a9e57a
Author: László Németh on Tue Feb 25 09:46:15 2020 +0100
    tdf#123757 DOCX import: separate different style tables
    
    to avoid of losing table layout, color etc. during
    their prohibited combination into one table: table
    style of the second table overwrote the table style
    of the first table, or without table style, the
    second table was overwritten by the table style of
    the first table.

*** This bug has been marked as a duplicate of bug 123757 ***