Bug 116623 - [EMF] FILEOPEN The curves extend outside the plot area
Summary: [EMF] FILEOPEN The curves extend outside the plot area
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
(earliest affected) release
Hardware: All All
: low minor
Assignee: Not Assigned
Depends on: 142639
Blocks: EMF-WMF
  Show dependency treegraph
Reported: 2018-03-25 15:16 UTC by johan
Modified: 2024-05-03 03:16 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

example files (53.35 KB, application/zip)
2018-03-25 15:16 UTC, johan
Example DOCX (83.80 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-11-16 12:22 UTC, Timur

Note You need to log in before you can comment on or make changes to this bug.
Description johan 2018-03-25 15:16:14 UTC
Migrated from bug 116335 (part 3).

Some parts of certain EMF images are not displayed correctly. An example is attached. When it is inserted into Writer or opened in Draw, the curves extend outside the plot area even though they should not.

Example contents:
- An EMF file 
- A screenshot showing this problem in Writer
- A reference rendering in Microsoft Word (note that this screenshot also contains another, unrelated image)

Please note that the same problem occurs in Inkscape.

Steps to Reproduce:
1. Download and unpack the example files
2. Insert the EMF file into Writer or open it in Draw
3. Look at the plot curve endpoints 
4. Compare with the reference rendering. You can also use Microsoft software to view the EMF file

Actual Results:  
The curves extend outside the plot area

Expected Results:
The curves should stay inside the plot area

Reproducible: Always

User Profile Reset: No

Additional Info:
Tested with:

Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: fi-FI (fi_FI); Calc: group

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

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
Comment 1 johan 2018-03-25 15:16:39 UTC
Created attachment 140873 [details]
example files
Comment 2 QA Administrators 2019-04-14 02:49:41 UTC Comment hidden (obsolete)
Comment 3 johan 2019-07-06 13:14:04 UTC
Tested on Windows 7, 32-bit, with a clean installation of:

Version: (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.

Additional note which may be useful: This problem occurs in Inkscape (0.92.4 tested) as well and has already been reported to Inkscape developers.
Comment 4 Timur 2020-11-16 12:22:53 UTC
Created attachment 167330 [details]
Example DOCX

Repro 7.1+ as of today. 

Bad practice to attach ZIP. I attach DOCX from MSO with EMF inserted, easiest for testing via command line.
Comment 5 Xisco Faulí 2022-05-03 11:32:05 UTC
Dear Bartosz,
This bug has been in ASSIGNED status for more than 3 months without any
activity. Resetting it to NEW.
Please assign it back to yourself if you're still working on this.
Comment 6 QA Administrators 2024-05-03 03:16:27 UTC
Dear johan,

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 https://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://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team