summaryrefslogtreecommitdiff
path: root/libdocument/ev-document-misc.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-24 18:24:23 +0200
committerraveit65 <[email protected]>2016-06-29 16:23:03 +0200
commitb57a2d3da077bfba4b5b3154afd90019b5833778 (patch)
tree673496336e48753fd9ff7f3bd05dd63210952ac6 /libdocument/ev-document-misc.c
parente56595993b63ffa15b31aec92afbdac295b12b05 (diff)
downloadatril-b57a2d3da077bfba4b5b3154afd90019b5833778.tar.bz2
atril-b57a2d3da077bfba4b5b3154afd90019b5833778.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/ev-document-misc.c')
-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 a0ba4785..01573601 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);