Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2005-05-09 09:04:43 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-05-09 09:04:43 (GMT)
commitf2f4f3a6ba165253204a86048e69656c01ebcf27 (patch)
tree322bf90365c54cf7480ed3e6caec2e02ef621dac /backend
parent1adce5486b10e763bed869b110ea31d11ef83e0e (diff)
Compare page labels even without has_labels set, fixes setting page with
2005-05-07 Juerg Billeter <j@bitron.ch> * backend/ev-page-cache.c: (ev_page_cache_set_page_label): Compare page labels even without has_labels set, fixes setting page with entry
Diffstat (limited to 'backend')
-rw-r--r--backend/ev-page-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/ev-page-cache.c b/backend/ev-page-cache.c
index 8fb8bcd..c66a1a4 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);