From: Nickolay V. Shmyrev Date: Sat, 16 Apr 2005 18:07:26 +0000 (+0000) Subject: Set current page to 0 if document has pages X-Git-Tag: EVINCE_0_2_1~40 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=7b093b9c4ed0f6ff0ad54c6447f64a823e90cecb;p=evince.git Set current page to 0 if document has pages --- diff --git a/ChangeLog b/ChangeLog index 9c7b8792..b9bde8a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-04-16 Nickolay V. Shmyrev + + * backend/ev-page-cache.c: (_ev_page_cache_new): + + Set current page to 0 if document has pages. + 2005-04-16 Marco Pesenti Gritti * thumbnailer/evince-thumbnailer.c: (evince_thumbnail_pngenc_get): diff --git a/backend/ev-page-cache.c b/backend/ev-page-cache.c index 46ecbc17..491e0742 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; }