From 7ff0dbcf7a396eea2de03de59b8259e72908158f Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Thu, 29 Oct 2009 18:05:46 +0100 Subject: [PATCH] Use ev_page_cache_get_size instead of EvDocument directly --- shell/ev-print-operation.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c index 730db80a..8c27cd39 100644 --- a/shell/ev-print-operation.c +++ b/shell/ev-print-operation.c @@ -1644,10 +1644,11 @@ ev_print_operation_print_request_page_setup (EvPrintOperationPrint *print, GtkPageSetup *setup) { EvPrintOperation *op = EV_PRINT_OPERATION (print); - gdouble width, height; + gint width, height; - ev_document_get_page_size (op->document, page_nr, - &width, &height); + ev_page_cache_get_size (ev_page_cache_get (op->document), + page_nr, 0, 1.0, + &width, &height); if (width > height) gtk_page_setup_set_orientation (setup, GTK_PAGE_ORIENTATION_LANDSCAPE); else -- 2.47.1