File 0001-Fix-rotated-tiff-documents.patch of Package mingw32-evince

From 08a9f8083331671784ce4dcd72bc64579ec6f422 Mon Sep 17 00:00:00 2001
From: Hib Eris <hib@hiberis.nl>
Date: Mon, 25 Jul 2011 20:35:48 +0200
Subject: [PATCH] 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 01676b5..2dd8f78 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);
-- 
1.7.4.1

openSUSE Build Service is sponsored by