diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-04-13 15:06:21 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-04-13 15:10:15 (GMT) |
commit | 2b60116df773bcd4456228ff79c3eff4264dcc4c (patch) | |
tree | 8c1bb0457865b7d4e54a199a1abcd49562f08cd6 /libview | |
parent | 7ff46d04e6f8f6e3cd658f73c65b5d66be55ee63 (diff) |
[libview] Make sure there's a new valid page range before updating caches
Fixes fdo#27599.
Diffstat (limited to 'libview')
-rw-r--r-- | 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; |