Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorNickolay 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)
commit7b093b9c4ed0f6ff0ad54c6447f64a823e90cecb (patch)
tree392679817db8d1bc4a338ead918bb79a405f0bde /backend
parentdb3cc01a6a4cbdc9e3e85097624fc7475dba1e15 (diff)
Set current page to 0 if document has pages
Diffstat (limited to 'backend')
-rw-r--r--backend/ev-page-cache.c3
1 files changed, 3 insertions, 0 deletions
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;
}