After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 442546 - pdf export: problem with dash length
pdf export: problem with dash length
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
git master
Other Linux
: Normal normal
: ---
Assigned To: Emmanuel Pacaud
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2007-05-31 09:47 UTC by Frederic Parrenin
Modified: 2010-08-18 14:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The .gnumeric file to reproduce the problem (10.77 KB, application/x-gnumeric)
2007-05-31 09:48 UTC, Frederic Parrenin
Details
The .gnumeric file to reproduce the problem (2.42 KB, application/x-gnumeric)
2007-05-31 09:49 UTC, Frederic Parrenin
Details
The exported .pdf graph. (10.77 KB, application/pdf)
2007-05-31 09:50 UTC, Frederic Parrenin
Details

Description Frederic Parrenin 2007-05-31 09:47:17 UTC
Steps to reproduce the problem:
- open the attached .gnumeric file
=> the dash length for both the primary and secondary grids are of the same length
- export the graph to pdf
=> in the pdf file, the dash length is shorter for the secondary grid.
It might be linked to the width of the lines.
Comment 1 Frederic Parrenin 2007-05-31 09:48:00 UTC
Created attachment 89093 [details]
The .gnumeric file to reproduce the problem
Comment 2 Frederic Parrenin 2007-05-31 09:49:39 UTC
Created attachment 89094 [details]
The .gnumeric file to reproduce the problem

Oups, sorry, the first file was a wrong one.
Comment 3 Frederic Parrenin 2007-05-31 09:50:35 UTC
Created attachment 89095 [details]
The exported .pdf graph.
Comment 4 Emmanuel Pacaud 2007-05-31 11:19:42 UTC
It's not a PDF export bug, but a screen output one.

A possible solution to avoid this issue would be to calculate the dash lengths from the raw line width (not rounded), and round the values in order to keep sharp line ends.

That would make the screen output closer to the PDF one.

The problem is we'll have the same screen rendering for different dash types.
Comment 5 Emmanuel Pacaud 2007-05-31 11:23:47 UTC
By the way, if you want to obtain the same dash length for both minor and major grid lines in the PDF output, you can set the line width to the same value, and adjust the line colors.
Comment 6 Morten Welinder 2010-08-10 14:57:43 UTC
For the record, this problem is still here with cairo-based rendering.
Comment 7 Jean Bréfort 2010-08-18 14:42:45 UTC
I don't understand "The problem is we'll have the same screen rendering for different dash types" from comment #4. I don't think it will be worse than previously, so I did it.

This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.