summaryrefslogtreecommitdiff
path: root/libdocument
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-24 18:24:23 +0200
committermonsta <[email protected]>2016-08-09 21:58:09 +0300
commitc40e801641802df4a0a07a32cae68cf48a4daf60 (patch)
tree021a90702476d397219c1b0a9d2f5768bf69d727 /libdocument
parent69bc2bd035891da8a6808d43fe2a2cd91852890d (diff)
downloadatril-c40e801641802df4a0a07a32cae68cf48a4daf60.tar.bz2
atril-c40e801641802df4a0a07a32cae68cf48a4daf60.tar.xz
Fix rotated tiff documents
This allows tiff documents with different XRESOLUTION and YRESOLUTION to rotate correctly. taken from: https://git.gnome.org/browse/evince/commit/?id=67700e0
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-document-misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c
index a695c050..bae754d1 100644
--- a/libdocument/ev-document-misc.c
+++ b/libdocument/ev-document-misc.c
@@ -330,6 +330,7 @@ ev_document_misc_surface_rotate_and_scale (cairo_surface_t *surface,
default:
cairo_translate (cr, 0, 0);
}
+ cairo_rotate (cr, dest_rotation * G_PI / 180.0);
if (dest_width != width || dest_height != height) {
cairo_pattern_set_filter (cairo_get_source (cr), CAIRO_FILTER_BILINEAR);
@@ -338,7 +339,6 @@ ev_document_misc_surface_rotate_and_scale (cairo_surface_t *surface,
(gdouble)dest_height / height);
}
- cairo_rotate (cr, dest_rotation * G_PI / 180.0);
cairo_set_source_surface (cr, surface, 0, 0);
cairo_paint (cr);
cairo_destroy (cr);