From e086a31ebe4c0994fbe88904e23c2bb96b84eb8a Mon Sep 17 00:00:00 2001 From: raveit65 Date: Tue, 2 Jan 2018 16:09:23 +0100 Subject: Revert "libview: Update the current page also when pending scroll is to find a location" Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1525313 This reverts commit e64064d40b451011dba2f891be454f65439df18d. --- libview/ev-view.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libview/ev-view.c b/libview/ev-view.c index 2e8f686c..befef632 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -758,8 +758,7 @@ view_update_range_and_current_page (EvView *view) } } - if (view->pending_scroll == SCROLL_TO_KEEP_POSITION || - view->pending_scroll == SCROLL_TO_FIND_LOCATION) { + if (view->pending_scroll == SCROLL_TO_KEEP_POSITION) { 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