Bug 79679 - EMF: dashed lines in background grid are rendered as solid lines
Summary: EMF: dashed lines in background grid are rendered as solid lines
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version: 4.3.0.0.beta1
Hardware: x86-64 (AMD64) All
: medium major
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: bibisected
Keywords: bisected, regression
Depends on:
Blocks:
 
Reported: 2014-06-05 12:17 UTC by Karel Hruska
Modified: 2015-01-06 07:21 UTC (History)
7 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Rendering in LibreOffice 4.3.0.0 beta1 in comparison to rendering in LibreOffice 4.0.6.2 (170.69 KB, image/png)
2014-06-05 12:17 UTC, Karel Hruska
Details
EMF file generated by Matlab (imported broken) (33.43 KB, image/x-emf)
2014-06-05 12:19 UTC, Karel Hruska
Details
EMF file generated by GNU/Octave (imported OK) (146.41 KB, image/x-emf)
2014-06-05 12:20 UTC, Karel Hruska
Details

Description Karel Hruska 2014-06-05 12:17:15 UTC
Created attachment 100457 [details]
Rendering in LibreOffice 4.3.0.0 beta1 in comparison to rendering in LibreOffice 4.0.6.2

Figures saved in Matlab as metafiles (*.emf) and imported into LibreOffice 4.3.0.0 beta 1 show incorrect rendering - dashed lines in background grid are rendered as solid lines (see attachment for comparison of rendering between LibreOffice 4.0.6.2 and LibreOffice 4.3.0.0 beta 1). Tested platforms: Windows 7 64-bit (screenshot), Ubuntu 12.04.0 amd64.

Steps to reproduction:
1. Open a new document
2. Import (drag&drop) the attached EMF file (attachment #2 [details] [review])

In LibreOffice 4.0.6.2
Dashed lines from Matlab are rendered as dashed lines

In LibreOffice 4.3.0.0 beta 1
Dashed lines from Matlab are rendered as solid lines

I did a bibisection in order to find the suspicious commit with following result:

There are only 'skip'ped commits left to test.
The first bad commit could be any of:
67ae616bc846d2a4e05661a5980287cb38b8a455
bde12e7d6eef3d657ebdf62cb5442490fb90d899
7faf01595aded0c825d2d9e50c62c688e91c1496
We cannot bisect more!

Note: EMF figures imported from the GNU/Octave are rendered correctly (attachment #3 [details] [review]).
Comment 1 Karel Hruska 2014-06-05 12:19:05 UTC
Created attachment 100458 [details]
EMF file generated by Matlab (imported broken)
Comment 2 Karel Hruska 2014-06-05 12:20:03 UTC
Created attachment 100459 [details]
EMF file generated by GNU/Octave (imported OK)
Comment 3 Jean-Baptiste Faure 2014-06-09 15:48:22 UTC
Tested with LO 4.3.0.0beta2+, LO 4.2.6.0+, LO 4.1.6 and LO 4.0.6 under Ubuntu 14.04 x86-64:
- EMF Gnu/Octave imported OK in all versions
- EMF Matlab imported OK in LO 4.0.6 (generic Linux version)
- EMF Matlab in LO 4.1.6 and 4.2.6.0+ : I see only the axis and the grid with dashed lines, not the curves.
- EMF Matlab in LO 4.3.0.0beta2+ : I see only the curves but not the axis nor the grid.

So there is obviously a bug and it is a regression because it works in LO 4.0.6

Best regards. JBF
Comment 4 Karel Hruska 2014-06-10 07:08:12 UTC
Jean-Baptiste,
please could you try some zooming of the document with Matlab EMF in 4.3.0.0beta2+? In 4.3.0.0 beta 1 the grid appeared after zoom-out, fresh import showed only curves.

Thank you,
KH

(In reply to comment #3)
> Tested with LO 4.3.0.0beta2+, LO 4.2.6.0+, LO 4.1.6 and LO 4.0.6 under
> Ubuntu 14.04 x86-64:
> - EMF Gnu/Octave imported OK in all versions
> - EMF Matlab imported OK in LO 4.0.6 (generic Linux version)
> - EMF Matlab in LO 4.1.6 and 4.2.6.0+ : I see only the axis and the grid
> with dashed lines, not the curves.
> - EMF Matlab in LO 4.3.0.0beta2+ : I see only the curves but not the axis
> nor the grid.
> 
> So there is obviously a bug and it is a regression because it works in LO
> 4.0.6
> 
> Best regards. JBF
Comment 5 Michael Stahl 2014-06-10 14:48:39 UTC
with current libreoffice-4-3, with zoom levels 80% - 140% the grid disappears,
outside that range grid is visible.  oh at 250%-310% it also disappears.

does not happen in 4.2.4.2.
Comment 6 Jean-Baptiste Faure 2014-06-12 17:12:43 UTC
Indeed if I zoom on the document, the grid appears as said by Michael Stahl.
We have the same problem in the preview.
Tested with LO 4.3.0.0beta2+ under Ubuntu 14.04 x86-64

Best regards. JBF
Comment 7 Karel Hruska 2014-08-05 06:44:44 UTC
The bug is still present in final release of LibreOffice 4.3.0.
Comment 8 Jean-Baptiste Faure 2014-08-05 07:01:37 UTC
Please, do not change the version number which shows the oldest version in which the bug has been seen.

Best regards. JBF
Comment 9 Karel Hruska 2014-08-05 07:09:35 UTC
(In reply to comment #8)
> Please, do not change the version number which shows the oldest version in
> which the bug has been seen.
> 
> Best regards. JBF

I am sorry. Thank you for notification.
Comment 10 Matthew Francis 2015-01-06 07:21:31 UTC
Not sure how relevant this is to the current state of EMF, but the (or at least a) commit which broke this is below

Adding Cc: to chris.sherlock79@gmail.com - enother EMF bug for you


commit 09c722873b2d378d2d155f5f1dd7d8f3fb2012e9
Author: Andras Timar <andras.timar@collabora.com>
Date:   Sun Jan 19 15:12:15 2014 +0100

    EMF/WMF: fix rendering of pen styles (dash, dot, dashdot, dashdotdot)
    
    Change-Id: I226bac370601b75f2589f7a7c5e8830746b31e2e


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.