Description: Attached user made document has two scanned images in WMF format on subsequent pages. In 6.0 these appeared the same way as in Word, but now they are aligned on top of each other. The problem does not occur if the same two images are inserted in JPG format. I saved these to WMF with Draw (as the original document contained some scanned papers in this format) and the bug occurred after replacing the original documents images with these in Word. I’m not sure how the original document was made, I could not reproduce the problem from scratch Steps to Reproduce: 1. Open attached document in Word and Writer Actual Results: The image from the second page is not visible and the text is at the top of the first page. Expected Results: Both images are visible. Reproducible: Always User Profile Reset: No Additional Info: LibreOffice details: Version: 6.4.0.0.alpha0+ (x86) Build ID: 49422a469646ad8be43ba828ca24c2484c26b9e8 CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win; TinderBox: Win-x86@42, Branch:master, Time: 2019-07-08_00:50:19 Locale: hu-HU (hu_HU); UI-Language: en-US Calc: CL
Bibisected using bibisect-win32-6.1 to: URL: https://cgit.freedesktop.org/libreoffice/core/commit/?id=edda1e5fc8113aa4744e32f97c96a3cc311485ca
Created attachment 152681 [details] Example file from Word with WMF images
Created attachment 152682 [details] The same example file from Word with JPG images
Created attachment 152683 [details] Screenshot of the two documents in Word – no difference
Created attachment 152684 [details] Screenshot of the two documents in LO 6.1 alpha right before the suspected commit – no difference
Created attachment 152685 [details] Screenshot of the two documents in LO 6.1 alpha at the suspected commit. The file with WMF images appears on one page, now with actual image content shown.
Adding CC to: Miklos Vajna Bibisected using bibisect-win32-6.1 to: URL: https://cgit.freedesktop.org/libreoffice/core/commit/?id=edda1e5fc8113aa4744e32f97c96a3cc311485ca author Miklos Vajna <vmiklos@collabora.co.uk> 2018-04-20 16:32:00 +0200 Committer Miklos Vajna <vmiklos@collabora.co.uk> 2018-04-20 21:04:35 +0200 Summary: DOCX import: lazy-read images without external headers
Reproduced in Version: 6.4.0.0.alpha0+ Build ID: 7a0164f0d82d91e2ac481d74cdacfe9a7ad6080f CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US Calc: threaded
Adding Cc: to Miklos Vajna
Proposed patch: https://gerrit.libreoffice.org/#/c/75599/
Gabor Kelemen committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/184a4771dad448a37f80b29bc62ad62e0a6a4bb6%5E%21 tdf#126310 Disable lazy loading of WMF images It will be available in 6.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Gabor Kelemen committed a patch related to this issue. It has been pushed to "libreoffice-6-3": https://git.libreoffice.org/core/+/1c04b5c97ca3b12e52ec55572da77f7b6636e34c%5E%21 tdf#126310 Disable lazy loading of WMF images It will be available in 6.3.0.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Verified in Version: 6.4.0.0.alpha0+ Build ID: ed2107f0488887528d8e49135d3270705f389ed5 CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US Calc: threaded @Gabor, thanks for fixing this issue!! Could it be possible to have a unittest for this fix ?
Gabor Kelemen committed a patch related to this issue. It has been pushed to "libreoffice-6-2": https://git.libreoffice.org/core/+/f88d51e1f27896e5339033671bac158d2436abcf%5E%21 tdf#126310 Disable lazy loading of WMF images It will be available in 6.2.6. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/1238ca8d100c107656b707ed3a6b662f0a1867fb Revert "tdf#126310 Disable lazy loading of WMF images" It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.