]> www.fi.muni.cz Git - evince.git/commitdiff
Set current page to 0 if document has pages
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sat, 16 Apr 2005 18:07:26 +0000 (18:07 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sat, 16 Apr 2005 18:07:26 +0000 (18:07 +0000)
ChangeLog
backend/ev-page-cache.c

index 9c7b879296f4bd7dfcbe6ec8bef785f303ba93ee..b9bde8a7e8c503a6c6a778c0f533071ac7128364 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-04-16  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * backend/ev-page-cache.c: (_ev_page_cache_new):
+       
+       Set current page to 0 if document has pages.
+
 2005-04-16  Marco Pesenti Gritti <mpg@redhat.com>
 
        * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get):
index 46ecbc170045e82b1fdb40eb239117d13ab5b60c..491e0742a7b706f2b0c77161afa829928b1c23a4 100644 (file)
@@ -146,6 +146,9 @@ _ev_page_cache_new (EvDocument *document)
 
        g_mutex_unlock (EV_DOC_MUTEX);
 
+       if (page_cache->n_pages > 0)
+               ev_page_cache_set_current_page (page_cache, 0);
+
        return page_cache;
 }