From 7b093b9c4ed0f6ff0ad54c6447f64a823e90cecb Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Sat, 16 Apr 2005 18:07:26 +0000 Subject: [PATCH] Set current page to 0 if document has pages --- ChangeLog | 6 ++++++ backend/ev-page-cache.c | 3 +++ 2 files changed, 9 insertions(+) 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; } -- 2.43.5