[evince] Fix rotated tiff documents



commit 67700e0f50f89caab79bf8d60aaffbeaf7f53166
Author: Hib Eris <hib hiberis nl>
Date:   Mon Jul 25 20:35:48 2011 +0200

    Fix rotated tiff documents
    
    This allows tiff documents with different XRESOLUTION and
    YRESOLUTION to rotate correctly.

 libdocument/ev-document-misc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c
index f165a11..e7523af 100644
--- a/libdocument/ev-document-misc.c
+++ b/libdocument/ev-document-misc.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]