Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 426036 Details for
Bug 575258
>=gnome-base/librsvg-2.40.11: rsvg-convert doesn't scale image
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Upstream patch for rsvg-convert.c applied to gnome-base/librsvg-2.40.13
librsvg-2.40.13-rsvg-convert.patch (text/plain), 1.14 KB, created by
alcyone
on 2016-02-20 23:17:47 UTC
(
hide
)
Description:
Upstream patch for rsvg-convert.c applied to gnome-base/librsvg-2.40.13
Filename:
MIME Type:
Creator:
alcyone
Created:
2016-02-20 23:17:47 UTC
Size:
1.14 KB
patch
obsolete
>--- a/rsvg-convert.c 2015-12-02 03:18:33.000000000 +0200 >+++ b/rsvg-convert.c 2016-02-21 00:29:40.759440388 +0200 >@@ -137,7 +137,7 @@ > cairo_surface_t *surface = NULL; > cairo_t *cr = NULL; > RsvgHandleFlags flags = RSVG_HANDLE_FLAGS_NONE; >- RsvgDimensionData dimensions; >+ RsvgDimensionData dimensions, dimensions_orig; > FILE *output_file = stdout; > char *export_lookup_id; > >@@ -318,6 +318,7 @@ > > if (!rsvg_handle_get_dimensions_sub (rsvg, &dimensions, export_lookup_id)) > g_printerr ("Could not get dimensions for file %s\n", args[i]); >+ rsvg_handle_get_dimensions_sub (rsvg, &dimensions_orig, export_lookup_id); > > /* if both are unspecified, assume user wants to zoom the image in at least 1 dimension */ > if (width == -1 && height == -1) { >@@ -416,6 +417,9 @@ > cairo_translate (cr, -pos.x, -pos.y); > } > >+ cairo_scale(cr, (double) dimensions.width / dimensions_orig.width, >+ (double) dimensions.height /dimensions_orig.height); >+ > rsvg_handle_render_cairo_sub (rsvg, cr, export_lookup_id); > > g_free (export_lookup_id);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 575258
: 426036