]> www.fi.muni.cz Git - evince.git/commitdiff
Allow display of last odd page in dual view. Fix for 316347.
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sat, 17 Sep 2005 09:40:02 +0000 (09:40 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sat, 17 Sep 2005 09:40:02 +0000 (09:40 +0000)
* shell/ev-view.c: (view_update_range_and_current_page):

Allow display of last odd page in dual view. Fix for 316347.

ChangeLog
shell/ev-view.c

index e5f452fa32e9b2dd9bf51cd24e8c4c109e7cbeb0..c0c38ff9c3dd4658afcebabe997f31a72e6dfbdb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-17  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * 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  <uws+gnome@xs4all.nl>
 
        * shell/ev-window.c: (ev_window_cmd_edit_toolbar):
index 0a63403ece0df16bcefec1ac2cc82dfff724943a..6fb577fce3a6e4910482bcc2bbbc222e0c3bcece 100644 (file)
@@ -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;