From: Carlos Garcia Campos Date: Thu, 29 Oct 2009 17:05:46 +0000 (+0100) Subject: Use ev_page_cache_get_size instead of EvDocument directly X-Git-Tag: EVINCE_2_28_2~5 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=7ff0dbcf7a396eea2de03de59b8259e72908158f;p=evince.git Use ev_page_cache_get_size instead of EvDocument directly --- 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