Bug 137822 - Text boxes on docx do not have correct wrapping configuration on LibreOffice
Summary: Text boxes on docx do not have correct wrapping configuration on LibreOffice
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2020-10-28 13:53 UTC by jake.weilhammer
Modified: 2020-11-13 08:30 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Original Docx File (283.61 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-10-28 13:55 UTC, jake.weilhammer
Details
Expected Results on Word (169.39 KB, image/png)
2020-10-28 13:55 UTC, jake.weilhammer
Details
Wrapping issue on LibreOffice (156.33 KB, image/png)
2020-10-28 13:56 UTC, jake.weilhammer
Details
Text Box Wrapping Settings on Word (541.39 KB, image/png)
2020-10-28 13:57 UTC, jake.weilhammer
Details
simplify reproducer (51.75 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-11-12 12:40 UTC, Xisco Faulí
Details
Comparison LibreOffice 7.1 master and MSO 2010 (77.98 KB, image/png)
2020-11-12 12:41 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jake.weilhammer 2020-10-28 13:53:50 UTC
Description:
Some text boxes on Microsoft word files are formatted incorrectly due to the Wrap setting on them (default seems to be Page Wrap).  This is causing the text boxes to have incorrect formatting and is moving them over other object/text on the document.

I'm able to manually fix this issue by selecting the text boxes and changing the wrapping style to "Optimal Page Wrap", but applying this indiscriminately to the whole document causes most pages to go blank and sometimes crashes LibreOffice.

At a large scale, we won't be able to tell which text boxes actually need this new wrapping style, and which ones it would format even worse.  Libre should be able to handle the correct wrapping style from the word document.

Steps to Reproduce:
1. Open included file with LibreOffice.  Or Copy/Paste text boxes included on original file (docx) above block of text.  Not exactly sure how the text boxes were made on this file, but they seem to be causing issues.  I have attached the wrapping settings on another screenshot (text_box_wrapping_settings.png)

2. Upon opening file with LibreOffice the formatting for the text boxes is off and they are moved around/over other text on the page

Actual Results:
Text boxes are wrapping incorrectly around/over other text and objects on the document.

Expected Results:
Text box stays formatted how it was in the docx.  This can be accomplished by changing the wrap settings on LibreOffice to Optimal Page Wrapping for the text box.


Reproducible: Always


User Profile Reset: No



Additional Info:
Libre should have chosen the correct wrapping settings based on the microsoft word file. Be it Optimal Page Wrapping or some other setting.
Comment 1 jake.weilhammer 2020-10-28 13:55:03 UTC
Created attachment 166802 [details]
Original Docx File
Comment 2 jake.weilhammer 2020-10-28 13:55:47 UTC
Created attachment 166803 [details]
Expected Results on Word
Comment 3 jake.weilhammer 2020-10-28 13:56:10 UTC
Created attachment 166804 [details]
Wrapping issue on LibreOffice
Comment 4 jake.weilhammer 2020-10-28 13:57:02 UTC
Created attachment 166805 [details]
Text Box Wrapping Settings on Word
Comment 5 Xisco Faulí 2020-11-12 12:40:43 UTC
Created attachment 167237 [details]
simplify reproducer
Comment 6 Xisco Faulí 2020-11-12 12:41:52 UTC
Created attachment 167238 [details]
Comparison LibreOffice 7.1 master and  MSO 2010
Comment 7 Xisco Faulí 2020-11-12 12:42:12 UTC
Reproduced in

Version: 7.1.0.0.alpha1+
Build ID: 03cafc2ab6b1678f82e9a30b6f81e505660ee702
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 8 Xisco Faulí 2020-11-12 12:44:20 UTC
also reproduced in

Version: 5.2.0.0.alpha1+
Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8)

and

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

@NISZ Team, I thought you might be interested in this issue
Comment 9 Xisco Faulí 2020-11-12 13:08:20 UTC
Actually the document ( at least the minimized ) has 2 problems, the problem with the blue shapes has been reported in bug 138162
Comment 10 NISZ LibreOffice Team 2020-11-13 08:30:18 UTC
Note: shape+table wrap problem is already known as bug #76022 and bug #115625 - this is likely a duplicate.