diff options
author | monsta <[email protected]> | 2016-02-24 16:47:08 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-02-28 11:35:12 +0300 |
commit | 038530ed2e9b844f75e2af24e44e0421ad1ccdc8 (patch) | |
tree | a40a6e24da117aedfad75c5c47ab778a3a949ae0 | |
parent | 4a02ac7e97e2e419f477df09607abeffb5646dfe (diff) | |
download | eom-038530ed2e9b844f75e2af24e44e0421ad1ccdc8.tar.bz2 eom-038530ed2e9b844f75e2af24e44e0421ad1ccdc8.tar.xz |
fix svg rendering that's broken with GTK+3
from
https://git.gnome.org/browse/eog/commit/?id=a33950c14d7b8da8e1c6289709022affb910be2a
-rw-r--r-- | src/eom-scroll-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c index 6385f29..6d1b290 100644 --- a/src/eom-scroll-view.c +++ b/src/eom-scroll-view.c @@ -1306,7 +1306,7 @@ display_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data) #ifdef HAVE_RSVG if (eom_image_is_svg (view->priv->image)) { - cairo_matrix_t matrix, translate, scale; + cairo_matrix_t matrix, translate, scale, original; EomTransform *transform = eom_image_get_transform (priv->image); cairo_matrix_init_identity (&matrix); if (transform) { @@ -1343,6 +1343,8 @@ display_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data) cairo_matrix_init_translate (&translate, xofs, yofs); cairo_matrix_multiply (&matrix, &matrix, &translate); + cairo_get_matrix (cr, &original); + cairo_matrix_multiply (&matrix, &matrix, &original); cairo_set_matrix (cr, &matrix); rsvg_handle_render_cairo (eom_image_get_svg (priv->image), cr); |