Commit 67700e0f authored by Hib Eris's avatar Hib Eris

Fix rotated tiff documents

This allows tiff documents with different XRESOLUTION and
YRESOLUTION to rotate correctly.
parent 0edfe50d
......@@ -261,6 +261,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);
......@@ -269,7 +270,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment