]> www.fi.muni.cz Git - evince.git/commitdiff
Compare page labels even without has_labels set, fixes setting page with
authorJuerg Billeter <j@bitron.ch>
Mon, 9 May 2005 09:04:43 +0000 (09:04 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Mon, 9 May 2005 09:04:43 +0000 (09:04 +0000)
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

ChangeLog
backend/ev-page-cache.c

index cd8aca26c9b46fbe22bc881b3dbe10ec2a719685..f1f1aa5e7b6264480978b1065dc10913baf4dbc6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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
+
 2005-05-09  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * shell/ev-view.c: (ev_view_create_invisible_cursor),
index 8fb8bcd17f6b4e6b189eece16653dfe578d57afa..c66a1a42d9ec7444b37109c8f51a249ada2c8a95 100644 (file)
@@ -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);