Bug 132264 - docx document with picture shown in wrong place
Summary: docx document with picture shown in wrong place
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Floatingtable
  Show dependency treegraph
 
Reported: 2020-04-19 20:21 UTC by ajg02
Modified: 2023-04-28 15:08 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Document that is rendered incorrectly (265.85 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-04-19 20:22 UTC, ajg02
Details
Comparison MSO 2010 and LibreOffice 7.0 master (261.93 KB, image/png)
2020-05-11 07:56 UTC, Xisco Faulí
Details
smaller reproducer (138.50 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-05-11 08:11 UTC, Xisco Faulí
Details
The example file in Word 2016 and Writer master (179.89 KB, image/png)
2023-04-28 09:00 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ajg02 2020-04-19 20:21:50 UTC
Description:
Docx document renders incorrectly in that a picture is shown in the wrong place so that it obscures some of the text. Also a blank box is shown, presumably for the picture, which obscures other parts of the text, I guess the text should flow around this box.

Steps to Reproduce:
1. Open attached document
2.
3.

Actual Results:
Line drawing obscures text on 1st page.
More text obscured by blank box in middle of bottom of 1st page.

Expected Results:
All text readable. Line drawing picture shown with text flowing around it.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 6.4.2.2
Build ID: 1:6.4.2-3
CPU threads: 4; OS: Linux 5.5; UI render: default; VCL: gtk3; 
Locale: en-GB (en_GB.UTF-8); UI-Language: en-GB
Calc: CL
Comment 1 ajg02 2020-04-19 20:22:49 UTC
Created attachment 159727 [details]
Document that is rendered incorrectly
Comment 2 Xisco Faulí 2020-05-11 07:56:09 UTC
Created attachment 160645 [details]
Comparison MSO 2010 and LibreOffice 7.0 master
Comment 3 Xisco Faulí 2020-05-11 07:56:36 UTC
Reproduced in

Version: 7.0.0.0.alpha1+
Build ID: 86bc13248c1d9f63b10aac304bdf0361d1dcc47f
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 Xisco Faulí 2020-05-11 08:06:21 UTC
Problem with image not displayed also happening in

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
Comment 5 Xisco Faulí 2020-05-11 08:11:16 UTC
Created attachment 160646 [details]
smaller reproducer
Comment 6 QA Administrators 2023-01-12 03:20:54 UTC Comment hidden (obsolete)
Comment 7 ajg02 2023-01-12 09:13:58 UTC
Bug still present although behaviour has changed slightly. Picture is still in wrong place albeit closer than it was and text flow is still wrong. So some text is still obscured incorrectly. The smaller reproducer does not show the complete problem as it is missing the text that gets obscured.

Version: 7.4.4.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Debian package version: 1:7.4.4~rc2-2
Calc: threaded
Comment 8 BogdanB 2023-04-22 07:22:34 UTC
Also in
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 35787e07b7e83f7dcaa0c67830fcb4eded49c71f
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 9 Gabor Kelemen (allotropia) 2023-04-28 09:00:58 UTC
Created attachment 186975 [details]
The example file in Word 2016 and Writer master

This looks good now, floating frames are on separate pages since:

https://git.libreoffice.org/core/+/e0017ad2a5b008111b716c0814c5a0c5b0f1e05b

author	Miklos Vajna <vmiklos@collabora.com>	Mon Apr 24 12:43:26 2023 +0200
committer	Miklos Vajna <vmiklos@collabora.com>	Mon Apr 24 17:06:27 2023 +0200

sw floattable, crashtesting: fix PDF export of fdo80989-1.docx
Comment 10 Gabor Kelemen (allotropia) 2023-04-28 09:01:36 UTC
Thanks Miklos for fixing this as well :)
Comment 11 BogdanB 2023-04-28 15:08:09 UTC
Working well
Verified with
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 424bdeda9fea09f0b48b5551baf872656845c7c3
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded