Grouped images and set wrap to "in line with text" in a docx file when opened in LibreWriter will not be displayed/rendered
Steps to Reproduce:
1. Create a docx file in Microsoft Office 2010
2. Insert some images, set wrap for each images to "in front of text"
3. Group the images and set wrap for the group to "in line with text"
The group is not displayed/rendered when the wrap had been set to "in line with text". And it is not possible to change the wrap of the group when open the docx file with LibreWriter.
When change the wrap to "in front of text" in Microsoft Office and reopen the file in LibreWriter, the group is displayed/rendered normally.
The image group is displayed/rendered when wrap is set to "In line with text" in the docx file.
User Profile Reset: Yes
Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU threads: 4; OS: Linux 4.14; UI render: default; VCL: x11;
Locale: en-US (en_US.UTF-8); Calc: CL
You can look in the the attached file. Enable/disable OpenCL has no effect.
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.9) Gecko/20100101 Goanna/3.4 Firefox/52.9 PaleMoon/27.8.1
Created attachment 140992 [details]
The sample file
You can find in this sample file 03 cases I have tested.
This bug affects LibreOffice 22.214.171.124 also
I think, that the problem is not, that there is a group. But I think, the problem is, that this group is too wide. The page text area has 7.65cm width and the group has 7.77cm width. Reduce the width of the group and it will be rendered.
As you can see in the sample file, the group with wrap set to "in front of text" in Microsoft Word is rendered normally.
With the wrap set to "in line with text", the group is actually rendered but resized to small dots. And when I right click on the group in LibreWriter, I could not change the wrap or ungroup it. Then I found out that if I change the anchor to Page (it was initially set to "As character" by LibreWriter), the Wrap and Ungroup menu are shown again.
I also tried to change the width of the group in Word first, and it was as you said, the group was rendered correctly. Nevertheless, I think this is still an annoying bug as I don't really want to change the width of the group.
Created attachment 141352 [details]
Minimal example from MSO 2013 (working)
I created a minimal example in MSO 2013 from two of the images I extracted from the original file.
I first made them non-inline, positioned and scaled them. Then I grouped them and made the grouped image inline.
It displays in LibreOffice.
I guess in my case the paper size has something to do with "in line with text" group. If before grouping the images are put outside the margin, then Libre Writer won't display the group correctly.
(In reply to dxt.tfg from comment #6)
> I guess in my case the paper size has something to do with "in line with
> text" group. If before grouping the images are put outside the margin, then
> Libre Writer won't display the group correctly.
But you see, I put the images outside margin before grouping. When I do the grouping, it throws the group to the right, so it is only outside of the right margin. I just tested it again.
You are right. When I tried to extract the images and add them to a new docx file, even if the group of images were outside the margin, Libre Writer displayed the group correctly. There must be something weird in the original file that cause this issue.
Ok, closing as WFM. If steps to recreate the problem from scratch are discovered, I can try confirming again.