[evince/gnome-2-30] [libview] Make sure there's a new valid page range before updating caches
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/gnome-2-30] [libview] Make sure there's a new valid page range before updating caches
- Date: Tue, 13 Apr 2010 15:10:38 +0000 (UTC)
commit 2e78b96b9534b63d1e4902b6bc9e8ebb4d70a1a0
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 90e4fcb..9a51bf9 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]