Bug 107353 - FILEOPEN DOCX: floating table has wrong horizontal position
Summary: FILEOPEN DOCX: floating table has wrong horizontal position
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-22 13:50 UTC by Dominik Kopp
Modified: 2017-04-22 21:32 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
exaple document with floating table (22.08 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-04-22 13:50 UTC, Dominik Kopp
Details
How it looks in MSO 2010 (5.93 KB, image/png)
2017-04-22 20:12 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Kopp 2017-04-22 13:50:00 UTC
Created attachment 132749 [details]
exaple document with floating table

The floating table (Word 365) is imported as a frame with a table.
But the frame is positioned too far left.

See attached example. (contains Word screenshot as well)

The table borders should be at -0,75 cm and 15,25 cm. 
However, the borders in LO master (2017-04-21) are at -1,25 cm and 14,75 cm
(=> move frame 0,5 cm to the right)

Cell margins are 0,50 cm.


This bug report is similar to https://bugs.documentfoundation.org/show_bug.cgi?id=106742
but that report is for normal tables, this report is for floating table.
Comment 1 Xisco Faulí 2017-04-22 20:12:22 UTC
Created attachment 132755 [details]
How it looks in MSO 2010
Comment 2 Xisco Faulí 2017-04-22 20:14:16 UTC
Hi Dominik,
Behaviour is the same in LibreOffice 5.4 and MSO 2010.
I don't consider this a bug as the behaviour is different among different versions of MSO
Comment 3 Dominik Kopp 2017-04-22 21:32:03 UTC
Hello Xisco,

please rethink your decision. MSO 2010 renders the document wrongly because it was created with a newer MSO version.

A have some arguments:
- older MSO versions (like MSO 2010) create tables and align the text to the page margin. Newer MSO version (I guess MSO 2013+) aligns the table borders to the page margin.
- docx import of older MSO versions works OK.
- docx import of newer MSO versions works OK, since the *very* recent fix by https://bugs.documentfoundation.org/show_bug.cgi?id=106742
- docx import of newer MSO versions works not, if it's a floating table.

I hope the fix for normal tables can be applied for floating tables as well.
(this implies that LO is already following the different behaviors of MSO)