From f2f4f3a6ba165253204a86048e69656c01ebcf27 Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Mon, 9 May 2005 09:04:43 +0000 Subject: [PATCH] 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 --- ChangeLog | 7 +++++++ backend/ev-page-cache.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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); -- 2.43.5