Description: Migrated from bug 116335 (part 2) Some EMF images are not cropped and displayed correctly when they are inserted into Writer. The top part of the image is missing but can be revealed by using the crop tool and pulling the top/top left crop handle outwards. An example is attached. It contains: - An EMF file - A screenshot showing this problem - A reference redering in Microsoft Word (note: This shows another, unrelated image as well) Steps to Reproduce: 1. Download the example file and unpack it 2. Create a new document in Writer and insert the example EMF file into it 3. Look at the top of the image and compare with the screenshots. 4. Select the image -> Crop 5. Pull the top left crop handle outwards to reveal the rest of the image. Actual Results: The top part of the image is not initially displayed. Expected Results: The entire image should be displayed. Reproducible: Always User Profile Reset: No Additional Info: Tested with: Version: 6.0.2.1 Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89 CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; Locale: fi-FI (fi_FI); Calc: group Version: 5.2.7.2 Build ID: 1:5.2.7-1+deb9u2 CPU Threads: 4; OS Version: Linux 4.9; UI Render: default; VCL: gtk2; Locale: fi-FI (fi_FI.utf8); Calc: group Version: 5.4.5.1 Build ID: 79c9829dd5d8054ec39a82dc51cd9eff340dbee8 CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; Locale: fi-FI (fi_FI); Calc: group User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Created attachment 140872 [details] example files
Additional note: Try opening the EMF file in Inkscape. You can see that the top part is outside the canvas/page area. (Inkscape does not show the image 100% correctly so it should not be used as a reference. This problem, however, can be seen in Inkscape as well.)
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Tested on Windows 7, 32-bit, with a clean installation of: Version: 6.2.5.2 (x86) Build ID: 1ec314fa52f458adc18c4f025c545a4e8b22c159 CPU threads 4; OS: Windows 6.1; Rendering component: default; VCL: win; Locale: fi-FI (fi_FI); UI Language: fi-FI Calc: threaded This problem still occurs and it has actually become worse. The top part of the image can't be revealed anymore using the crop tool. This also occurs when the image is opened in Draw. Additional note which may be useful: This problem partially occurs in Inkscape (0.92.4 tested) - the image is placed outside the page/canvas area. All parts of the image are visible and editable, however. This problem has been reported to Inkscape developers.
Created attachment 167224 [details] EMF file exported with Paint
Bartosz Kosiorek committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/b0b78838e795fcd7f3c53e7f74fb32b2921a5ccb tdf#35986 tdf#92315 tdf#116335 tdf#116622 Add support for MapMode TEXT It will be available in 7.1.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.
*** This bug has been marked as a duplicate of bug 116335 ***
Bartosz Kosiorek committed a patch related to this issue. It has been pushed to "libreoffice-7-0": https://git.libreoffice.org/core/commit/1c399bb1dc9af8d591258e936508200d38d3bb5a tdf#35986 tdf#92315 tdf#116335 tdf#116622 Add support for MapMode TEXT It will be available in 7.0.4. 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.