summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);