Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libview/ev-view.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-12-08 16:28:49 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-12-08 16:28:49 (GMT)
commitef00f8a39f4a7c36f07888ee5ae1d21b9cf9b585 (patch)
tree8342785d7a733427922104da282c102188c73b65 /libview/ev-view.c
parented252626b3d584bc3d98649ce2a217c0b82ec50b (diff)
[libview] Don't try to show/hide annot windows the first time page range changes
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r--libview/ev-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 8a5ac5f..44f06cd 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -725,11 +725,11 @@ view_update_range_and_current_page (EvView *view)
if (start != view->start_page || end != view->end_page) {
gint i;
- for (i = start; i < view->start_page; i++) {
+ for (i = start; i < view->start_page && start != -1; i++) {
hide_annotation_windows (view, i);
}
- for (i = end; i > view->end_page; i--) {
+ for (i = end; i > view->end_page && end != -1; i--) {
hide_annotation_windows (view, i);
}
}