From: Juerg Billeter Date: Mon, 9 May 2005 09:04:43 +0000 (+0000) Subject: Compare page labels even without has_labels set, fixes setting page with X-Git-Tag: EVINCE_0_3_1~59 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=f2f4f3a6ba165253204a86048e69656c01ebcf27;p=evince.git Compare page labels even without has_labels set, fixes setting page with 2005-05-07 Juerg Billeter * backend/ev-page-cache.c: (ev_page_cache_set_page_label): Compare page labels even without has_labels set, fixes setting page with entry --- diff --git a/ChangeLog b/ChangeLog index cd8aca26..f1f1aa5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-05-07 Juerg Billeter + + * backend/ev-page-cache.c: (ev_page_cache_set_page_label): + + Compare page labels even without has_labels set, fixes setting page + with entry + 2005-05-09 Marco Pesenti Gritti * shell/ev-view.c: (ev_view_create_invisible_cursor), diff --git a/backend/ev-page-cache.c b/backend/ev-page-cache.c index 8fb8bcd1..c66a1a42 100644 --- a/backend/ev-page-cache.c +++ b/backend/ev-page-cache.c @@ -236,7 +236,7 @@ ev_page_cache_set_page_label (EvPageCache *page_cache, g_return_val_if_fail (page_label != NULL, FALSE); /* First, look for a literal label match */ - for (i = 0; i < page_cache->n_pages && page_cache->has_labels; i ++) { + for (i = 0; i < page_cache->n_pages; i ++) { if (page_cache->page_labels[i] != NULL && ! strcmp (page_label, page_cache->page_labels[i])) { ev_page_cache_set_current_page (page_cache, i);