Bug 161559 - Wrong position of draw object in DOCX: flush with page margin instead of wrapped inside paragraph.
Summary: Wrong position of draw object in DOCX: flush with page margin instead of wrap...
Status: RESOLVED DUPLICATE of bug 143899
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
3.6.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: compatibilityMode15
Keywords: filter:docx
Depends on:
Blocks: DOCX-Objects DOCX-Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2024-06-14 02:45 UTC by Stéphane Guillou (stragu)
Modified: 2024-09-07 14:26 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
screenshot comparing LO (left) and MS 365 (right) (206.32 KB, image/png)
2024-06-14 02:45 UTC, Stéphane Guillou (stragu)
Details
w2_win1-mso2019.pdf: no wrapping around textbox in Word 2019 (51.82 KB, application/pdf)
2024-09-07 14:26 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2024-06-14 02:45:05 UTC
Created attachment 194719 [details]
screenshot comparing LO (left) and MS 365 (right)

(Test in a recent trunk build to not hit bug 161199)

Steps:
1. Open attachment 194245 [details]
2. See position of draw object on page 2
3. compare to MS 365 and OnlyOffice

Result: it is positioned flush with the top edge of the page. It should be in the first paragraph of the second page, with text wrapping around it (but is imported with wrap = none).

In LO 3.4, object is not imported
In LO 3.5, object starts being imported but already had a differently wrong position (horizontally centred) _and_ size (higher than wide).
In LO 3.6.1.2, object as currently.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0e2409e5e3c73ec25c61aa4ea140d114869ea512
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded
Comment 1 Justin L 2024-08-19 14:38:20 UTC
Reported in bug 143899.

Note that this is a compat15 change. In MS Word 2010, the textbox is hugging the top of page 2 just like LO does. I wonder what happens if "layout in cell" is turned off...

*** This bug has been marked as a duplicate of bug 143899 ***
Comment 2 Justin L 2024-09-04 18:24:43 UTC
The textbox is <wp:wrapTopAndBottom/>, so there shouldn't be any wrapping. It is worth checking to verify that in non-web-Word that the text doesn't wrap around.
Comment 3 Justin L 2024-09-07 14:26:56 UTC
Created attachment 196300 [details]
w2_win1-mso2019.pdf: no wrapping around textbox in Word 2019