Bug 116716 - Grouped images with "in line with text" wrap in docx file not displayed/rendered in LibreWriter
Summary: Grouped images with "in line with text" wrap in docx file not displayed/rende...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks:
 
Reported: 2018-03-31 02:11 UTC by dxt.tfg
Modified: 2018-05-11 09:54 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
The sample file (782.37 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-03-31 02:22 UTC, dxt.tfg
Details
Minimal example from MSO 2013 (working) (190.83 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-04-14 10:14 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dxt.tfg 2018-03-31 02:11:24 UTC
Description:
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"

Actual Results:  
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.


Expected Results:
The image group is displayed/rendered when wrap is set to "In line with text" in the docx file.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.0.2.1
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
Comment 1 dxt.tfg 2018-03-31 02:22:19 UTC
Created attachment 140992 [details]
The sample file

You can find in this sample file 03 cases I have tested.
Comment 2 dxt.tfg 2018-03-31 02:26:04 UTC
This bug affects LibreOffice 6.0.2.1 also
Comment 3 Regina Henschel 2018-03-31 21:29:34 UTC
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.
Comment 4 dxt.tfg 2018-04-02 03:36:45 UTC
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.
Comment 5 Buovjaga 2018-04-14 10:14:34 UTC
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.
Comment 6 dxt.tfg 2018-04-14 12:46:17 UTC
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.
Comment 7 Buovjaga 2018-04-18 12:06:04 UTC
(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.
Comment 8 dxt.tfg 2018-04-23 15:58:00 UTC
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.
Comment 9 Buovjaga 2018-05-11 09:54:44 UTC
Ok, closing as WFM. If steps to recreate the problem from scratch are discovered, I can try confirming again.