X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-view.c;h=a5fc7ce636a351d9f9bd6420cd724be0e706ddf2;hb=8dbcee6be49013edc9821096288e2c078169e349;hp=291b3c5d125d5e77d6f61f487593e6c4dfa701c9;hpb=e6bb7c7e25b848008409db982bbac260fa97f73c;p=evince.git diff --git a/shell/ev-view.c b/shell/ev-view.c index 291b3c5d..a5fc7ce6 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -209,6 +209,7 @@ ev_view_size_request (GtkWidget *widget, if (GTK_WIDGET_REALIZED (widget)) { if (view->document) { ev_document_get_page_size (view->document, + -1, &requisition->width, &requisition->height); } else { @@ -950,6 +951,7 @@ set_document_page (EvView *view, int page) int old_width, old_height; ev_document_get_page_size (view->document, + -1, &old_width, &old_height); if (old_page != page) { @@ -964,6 +966,7 @@ set_document_page (EvView *view, int page) view->has_selection = FALSE; ev_document_get_page_size (view->document, + -1, &width, &height); if (width != old_width || height != old_height) gtk_widget_queue_resize (GTK_WIDGET (view)); @@ -1216,7 +1219,7 @@ ev_view_best_fit (EvView *view) int width, height; width = height = 0; - ev_document_get_page_size (view->document, &width, &height); + ev_document_get_page_size (view->document, -1, &width, &height); scale = 1.0; if (width != 0 && height != 0) { @@ -1238,7 +1241,7 @@ ev_view_fit_width (EvView *view) int width; width = 0; - ev_document_get_page_size (view->document, &width, NULL); + ev_document_get_page_size (view->document, -1, &width, NULL); scale = 1.0; if (width != 0)