Bug 155667 - LAYOUT DOCX: non-overlapping anchored image wraps differently around another float than in MSO, and swaps positions on round-trip
Summary: LAYOUT DOCX: non-overlapping anchored image wraps differently around another ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx, notBibisectable
Depends on:
Blocks: DOCX-Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2023-06-03 16:56 UTC by Justin L
Modified: 2023-08-10 10:29 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
tdf134114_allowOverlap.docx (18.81 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-06-03 16:56 UTC, Justin L
Details
tdf134114_allowOverlap.pdf: how LO and MSO see the first page (138.21 KB, application/pdf)
2023-06-03 17:05 UTC, Justin L
Details
tdf134114_allowOverlap_mso2019.pdf: modern MSO looks the same as 2010 (8.21 KB, application/pdf)
2023-06-06 19:04 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2023-06-03 16:56:01 UTC
Created attachment 187697 [details]
tdf134114_allowOverlap.docx

This ooxmlexport18 unit test ought to fit on one page.

It is a bit of an odd case, so that is why I added it as a bug report. The two shapes are placed at the same position, but one is told to not overlap. It is somewhat odd that MSO doesn't wrap it like LO does, but instead it hangs off the bottom right end.

When LO saves and reloads, the two shapes swap position.

This is not bibisectable. The "do not overlap" flag was ignored until LO 7.6.

Steps to reproduce
1.) Open tdf134114_allowOverlap.docx in LO.

Notice that some text spills over onto the next page, and the two images are centered nicely in the middle of the page (as they are instructed). However, in MSO the rounded frame hangs on the right-ish side of the page.

2.) save and reload (reload both in LO and in MSO).

Notice that objects have reversed position in MSO. In LO, they are overlapping each other despite the allowOverlap (false) setting of the rounded frame.
Comment 1 Justin L 2023-06-03 17:05:26 UTC
Created attachment 187698 [details]
tdf134114_allowOverlap.pdf: how LO and MSO see the first page
Comment 2 m_a_riosv 2023-06-04 00:02:20 UTC
I can't repro with
Version: 7.5.4.1 (X86_64) / LibreOffice Community
Build ID: 3a6a10a8a824826630ea908dcaea93b45a6a0af1
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
and
Microsoft® Word para Microsoft 365 MSO (versión 2304 compilación 16.0.16327.20200) de 64 bits
Comment 3 Justin L 2023-06-06 19:04:00 UTC
Created attachment 187758 [details]
tdf134114_allowOverlap_mso2019.pdf: modern MSO looks the same as 2010

(In reply to m.a.riosv from comment #2)
> I can't repro with
I'm puzzled. What can't you reproduce. Certainly LO doesn't look like this, and MSO 2010, and 2019 look the same.
Comment 4 Buovjaga 2023-08-10 10:29:14 UTC
Repro in LibreOffice

Arch Linux 64-bit, X11
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2d0268f5ae6061bc96c00481c9ef3547be300b5a
CPU threads: 8; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 10 August 2023