summaryrefslogtreecommitdiff
path: root/libview/ev-view.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2019-11-27 11:37:43 +0100
committerraveit65 <[email protected]>2019-12-08 19:13:58 +0100
commit28e0f6ae87ecb9400c0b2b026b708ed99202458c (patch)
tree682fff723fe4fe5b45025a911b0d2732cdfe9170 /libview/ev-view.c
parent6b516130aac52b729ecf6ad0b91d5a84ab46ab7c (diff)
downloadatril-28e0f6ae87ecb9400c0b2b026b708ed99202458c.tar.bz2
atril-28e0f6ae87ecb9400c0b2b026b708ed99202458c.tar.xz
Revert "First page should not reloaded"
This reverts commit 00fad2c0d0fcdade570a08f046e85a4558f1fc0c. and fixes https://github.com/mate-desktop/atril/issues/404
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r--libview/ev-view.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index e3029305..a195ba21 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -788,13 +788,12 @@ view_update_range_and_current_page (EvView *view)
ev_view_check_cursor_blink (view);
}
- #define PAGE_CACHE_NUMBER 10
ev_page_cache_set_page_range (view->page_cache,
- MAX(view->start_page - PAGE_CACHE_NUMBER, 0),
- MIN(view->end_page + PAGE_CACHE_NUMBER, ev_document_get_n_pages (view->document) - 1));
+ view->start_page,
+ view->end_page);
ev_pixbuf_cache_set_page_range (view->pixbuf_cache,
- MAX(view->start_page - PAGE_CACHE_NUMBER, 0),
- MIN(view->end_page + PAGE_CACHE_NUMBER, ev_document_get_n_pages (view->document) - 1),
+ view->start_page,
+ view->end_page,
view->selection_info.selections);
if (view->accessible)
ev_view_accessible_set_page_range (EV_VIEW_ACCESSIBLE (view->accessible),