Bug 139651 - FILEOPEN Object layout shifts after import from docx into libreoffice
Summary: FILEOPEN Object layout shifts after import from docx into libreoffice
Status: RESOLVED DUPLICATE of bug 118693
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: OOXML-Shapes Regress-elim-SvxShapePolyPolygonBezier
  Show dependency treegraph
 
Reported: 2021-01-15 15:09 UTC by olivier.magloire
Modified: 2021-03-22 16:46 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
office.png (73.45 KB, image/png)
2021-01-15 15:10 UTC, olivier.magloire
Details
online.png (42.10 KB, image/png)
2021-01-15 15:11 UTC, olivier.magloire
Details
online_version.png (43.24 KB, image/png)
2021-01-15 15:11 UTC, olivier.magloire
Details
word.docx (44.19 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-01-15 15:11 UTC, olivier.magloire
Details
word.pdf (165.01 KB, application/pdf)
2021-01-15 15:11 UTC, olivier.magloire
Details
Screenshot (Writer, 6.1) (80.16 KB, image/png)
2021-01-24 21:41 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description olivier.magloire 2021-01-15 15:09:43 UTC
Description:
CollaboraOffice: 6.4-15
LOOLWSD: 4.2.8
LOKit: 6.2-23

Hi

I was told to open the ticket here instead of support.collaboraoffice.com. Thus I refer toCollabora Office but it also affects LibreOffice

We were informed that for documents created in word, some shapes move around in an unexpected behaviour when opening with any version of Collabora. This can be reproduced via slightly dated nextcloud Collabora online integration, native iPad app (no screenshot unfortunately), and local CollaboraOffice on latest release.

See attached files.

word.docx: original word file
word.pdf: exported pdf of word.docx
office.png: opening the file with collabora office
online.png: opening the file with collabora online
online_version.png: collabora online version

Not an urgent matter but surely increases the general usability.

Contact me via olivier.magloire@adfinis.com for more information.

Regards,
Olivier

Steps to Reproduce:
1. Open word.docx in LibreOffice Writer
2. Open word.docx in Microsoft Word
3. Compare

Actual Results:
Layout is off in Writer

Expected Results:
Layout should be the same in Writer as in Word


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.4-15
Build ID: 3b2cfc2464236b90a822cd243601cc334d518b36
CPU threads: 8; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 olivier.magloire 2021-01-15 15:10:43 UTC
Created attachment 168915 [details]
office.png
Comment 2 olivier.magloire 2021-01-15 15:11:10 UTC
Created attachment 168916 [details]
online.png
Comment 3 olivier.magloire 2021-01-15 15:11:29 UTC
Created attachment 168917 [details]
online_version.png
Comment 4 olivier.magloire 2021-01-15 15:11:44 UTC
Created attachment 168918 [details]
word.docx
Comment 5 olivier.magloire 2021-01-15 15:11:57 UTC
Created attachment 168919 [details]
word.pdf
Comment 6 Aron Budea 2021-01-24 21:40:07 UTC
Confirmed using LO 7.2.0.0.alpha0+ (4e1294b7d6f8de981147f15d4ca1b4e4853249eb) & 6.2.0.3 / Ubuntu.
It looks better in 6.1.0.3.
=> partial regression

In 6.1.0.3, the text boxes and separators have the correct size and position. Only the text spacing is wrong, because in the original document tabulation was used to position the pieces of text within the text box, and this isn't handled properly in Writer.

The regression is from the following commit. Adding CC: to Armin Le Grand.
https://cgit.freedesktop.org/libreoffice/core/commit/?id=36bade04d3780bc54c51b46bb0b63e69789658a5
author		Armin Le Grand <Armin.Le.Grand@cib.de>	2018-06-28 19:48:59 +0200
committer	Armin Le Grand <Armin.Le.Grand@cib.de>	2018-07-02 18:03:44 +0200

tdf106792 Get rid of SvxShapePolyPolygonBezier
Comment 7 Aron Budea 2021-01-24 21:41:56 UTC
Created attachment 169125 [details]
Screenshot (Writer, 6.1)
Comment 8 Xisco Faulí 2021-03-17 23:10:00 UTC

*** This bug has been marked as a duplicate of bug 118693 ***
Comment 9 olivier.magloire 2021-03-22 13:47:28 UTC
fix (https://bugs.documentfoundation.org/show_bug.cgi?id=118693) successfully verified
Comment 10 Aron Budea 2021-03-22 15:21:42 UTC
For the record, the fix bug 118693 fixed the regression part, but not the text spacing, which was an independent bug. Olivier, please open a new bug report on that.
Comment 11 olivier.magloire 2021-03-22 16:05:01 UTC
I saw that, thank you for checking in!

Additional bug report created: https://bugs.documentfoundation.org/show_bug.cgi?id=141181