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 340664 - rsvg_pixbuf_from_file returns a pixbuf with wrong size
rsvg_pixbuf_from_file returns a pixbuf with wrong size
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-04 17:27 UTC by Emmanuel Pacaud
Modified: 2006-05-04 18:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (919 bytes, patch)
2006-05-04 17:37 UTC, Emmanuel Pacaud
accepted-commit_now Details | Review

Description Emmanuel Pacaud 2006-05-04 17:27:57 UTC
Sometimes rsvg_pixbuf_from_file returns a pixbuf with incorrect dimensions.

It's due to a cast from double to int in rsvg_handle_get_dimensions, where it should be rounded.

I'm attaching a patch that should fix this issue.
Comment 1 Emmanuel Pacaud 2006-05-04 17:37:15 UTC
Created attachment 64819 [details] [review]
Patch
Comment 2 Dominic Lachowicz 2006-05-04 18:37:46 UTC
Please commit to HEAD and the gnome-2-14 branches. Thanks.
Comment 3 Dominic Lachowicz 2006-05-04 18:41:52 UTC
Nevermind - I've committed this myself. Thanks.