Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ev-page-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ev-page-cache.c')
-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);