From 7dd03515c2bc221f324d2f458e8cc9ae1098b0d4 Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Sat, 17 Sep 2005 09:40:02 +0000 Subject: [PATCH] Allow display of last odd page in dual view. Fix for 316347. * shell/ev-view.c: (view_update_range_and_current_page): Allow display of last odd page in dual view. Fix for 316347. --- ChangeLog | 6 ++++++ shell/ev-view.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index e5f452fa..c0c38ff9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-09-17 Nickolay V. Shmyrev + + * shell/ev-view.c: (view_update_range_and_current_page): + + Allow display of last odd page in dual view. Fix for 316347. + 2005-09-17 Wouter Bolsterlee * shell/ev-window.c: (ev_window_cmd_edit_toolbar): diff --git a/shell/ev-view.c b/shell/ev-view.c index 0a63403e..6fb577fc 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -544,6 +544,8 @@ view_update_range_and_current_page (EvView *view) view->start_page = view->current_page; if (view->current_page + 1 < ev_page_cache_get_n_pages (view->page_cache)) view->end_page = view->start_page + 1; + else + view->end_page = view->start_page; } else { view->start_page = view->current_page - 1; view->end_page = view->current_page; -- 2.43.5