]> www.fi.muni.cz Git - evince.git/commitdiff
Make sure current-page <= end-page in continuous mode. Fixes bug #454950.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 3 Sep 2007 14:07:37 +0000 (14:07 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Mon, 3 Sep 2007 14:07:37 +0000 (14:07 +0000)
2007-09-03  Carlos Garcia Campos  <carlosgc@gnome.org>
* shell/ev-view.c: (view_update_range_and_current_page):
Make sure current-page <= end-page in continuous mode. Fixes bug
#454950.

svn path=/trunk/; revision=2655

ChangeLog
shell/ev-view.c

index 1049eea2f0961694881d47cd6139b8d0dee19b93..116d5b2ddd1e91432c1b69c68a1bd0d5726e145e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-09-03  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-view.c: (view_update_range_and_current_page):
+
+       Make sure current-page <= end-page in continuous mode. Fixes bug
+       #454950.
+       
 2007-09-03  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * backend/pdf/ev-poppler.cc: (build_tree):
index 60f82e3d8433d3c176897540dcdd73a7d3e945d3..761594a53f3c16452b1aec4cbc9e91ea231fddb2 100644 (file)
@@ -489,7 +489,7 @@ view_update_range_and_current_page (EvView *view)
                                }
 
                                view->end_page = i;
-                       } else if (found) {
+                       } else if (found && view->current_page <= view->end_page) {
                                break;
                        }
                }