[evince] [libview] Make sure there's a new valid page range before updating caches



commit 2b60116df773bcd4456228ff79c3eff4264dcc4c
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Tue Apr 13 17:06:21 2010 +0200

    [libview] Make sure there's a new valid page range before updating caches
    
    Fixes fdo#27599.

 libview/ev-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 6e96fb8..244f19b 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -692,6 +692,9 @@ view_update_range_and_current_page (EvView *view)
 		view->end_page = view->current_page;
 	}
 
+	if (view->start_page == -1 || view->end_page == -1)
+		return;
+
 	if (start != view->start_page || end != view->end_page) {
 		gint i;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]