From: Carlos Garcia Campos Date: Tue, 8 Dec 2009 16:28:49 +0000 (+0100) Subject: [libview] Don't try to show/hide annot windows the first time page range changes X-Git-Tag: EVINCE_2_29_4~27 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=ef00f8a39f4a7c36f07888ee5ae1d21b9cf9b585;p=evince.git [libview] Don't try to show/hide annot windows the first time page range changes --- diff --git a/libview/ev-view.c b/libview/ev-view.c index 8a5ac5f8..44f06cd7 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); } }