]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-view.c
Compute size of the actual page, not of the current one.
[evince.git] / shell / ev-view.c
index 0a007d2a9b1c558a696314a80ed8f5a7b05bdcfa..450c4d455031e70b1bc0c0a4ec98f0a966c766e2 100644 (file)
@@ -1034,10 +1034,7 @@ ev_view_select_all (EvView *view)
                EvViewSelection *selection;
 
                ev_page_cache_get_size (view->page_cache,
-                                       view->current_page,
-                                       1.0,
-                                       &width,
-                                       &height);
+                                       i, 1.0, &width, &height);
 
                selection = g_new0 (EvViewSelection, 1);
                selection->page = i;