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 548494 - bad render of <path> elements (d parameter not parsed)
bad render of <path> elements (d parameter not parsed)
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
2.22.x
Other All
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-19 17:48 UTC by Gian Luca Ruggero
Modified: 2008-08-21 19:35 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
test svg, bad render (251 bytes, image/xml+svg)
2008-08-19 17:50 UTC, Gian Luca Ruggero
Details

Description Gian Luca Ruggero 2008-08-19 17:48:56 UTC
Please describe the problem:
Binary package hint: librsvg2-2

Package: librsvg2-2 version 2.22.2-2

The is a parsing error in the 'd' attribute of the <path> tag.

It should be possible to compress adjacent floating numbers suppressing the leading " 0." of the second float:
"500.13.88" should be parsed equal to "500.13 0.88"

I will include an svg file.
Try open it in Inkscape 0.46, Firefox 3.0 and you will see the correct render.
Nautilus and command line "rsvg" will render miserably...

For reference:
http://www.w3.org/TR/SVG/paths.html#PathDataGeneralInformation
Search for "8.3.9 The grammar for path data"

P.S: I did incorrectly post this bug in 'librsvg' source, https://bugs.launchpad.net/ubuntu/+source/librsvg/+bug/245524

Steps to reproduce:
1. open file
2. can't see two black squares...


Actual results:


Expected results:


Does this happen every time?
yes

Other information:
Comment 1 Gian Luca Ruggero 2008-08-19 17:50:05 UTC
Created attachment 116982 [details]
test svg, bad render
Comment 2 Dominic Lachowicz 2008-08-21 19:35:00 UTC
Fix committed in revision 1167. Thanks.