diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-04-16 18:07:26 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-04-16 18:07:26 (GMT) |
commit | 7b093b9c4ed0f6ff0ad54c6447f64a823e90cecb (patch) | |
tree | 392679817db8d1bc4a338ead918bb79a405f0bde | |
parent | db3cc01a6a4cbdc9e3e85097624fc7475dba1e15 (diff) |
Set current page to 0 if document has pages
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | backend/ev-page-cache.c | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -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): diff --git a/backend/ev-page-cache.c b/backend/ev-page-cache.c index 46ecbc1..491e074 100644 --- a/backend/ev-page-cache.c +++ b/backend/ev-page-cache.c @@ -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; } |