From e64064d40b451011dba2f891be454f65439df18d Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 28 Jul 2013 10:45:02 +0200 Subject: libview: Update the current page also when pending scroll is to find a location Pending scroll SCROLL_TO_FIND_LOCATION, can jump to another page if the location is in a different page. We should change the current page in the model in this case too. Origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=8709b39 --- libview/ev-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libview/ev-view.c') diff --git a/libview/ev-view.c b/libview/ev-view.c index e66b1f23..c76e5541 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -754,7 +754,8 @@ view_update_range_and_current_page (EvView *view) } } - if (view->pending_scroll == SCROLL_TO_KEEP_POSITION) { + if (view->pending_scroll == SCROLL_TO_KEEP_POSITION || + view->pending_scroll == SCROLL_TO_FIND_LOCATION) { best_current_page = MAX (best_current_page, view->start_page); if (best_current_page >= 0 && view->current_page != best_current_page) { -- cgit v1.2.1