One image out of line after DOCX export
Steps to Reproduce:
1. Open the attached file
2. Save as DOCX
3. File reload
One image jumps out of alignment
Same as ODT
User Profile Reset: No
additional wrong positioned image with
alignment off with
Created attachment 168360 [details]
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Created attachment 168429 [details]
The example file and its docx version in current master
Something is off after docx export in:
Build ID: e57665ea6f812aff9fc87073ce947f40a8b26e9d
CPU threads: 8; OS: Linux 5.0; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Created attachment 168430 [details]
Modified example file before and after docx save
Adding some colorful borders to the bottom row shows that all of them are moved a bit to the right.
Created attachment 168431 [details]
Modified example file before and its modified docx version
Looks like the problem stems from the anchoring position of the bottom row:
the first three images are anchored to the third 24 pt paragraph while the other five are anchored to the second 24 pt paragraph.
Writer seems to consider the second paragraph (but not the third - strange) wrapped around the other images, and adds the wrapped images width to the horizontal position of the five images in case of docx.
Manually changing their horizontal position from "Paragraph area" to "Left paragraph border" fixes the right shift and restores the original layout.
See bug #138782 about this.
*** This bug has been marked as a duplicate of bug 138782 ***