From 8b317416d7d84725db8f634cf4e9e7c18f1f6691 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Tue, 12 Apr 2005 06:51:05 +0000 Subject: Fix for bugs 300233,173184,300094. Problems with page index started at 0 and scrolling up with Shift + Space --- (limited to 'backend') diff --git a/backend/ev-page-cache.c b/backend/ev-page-cache.c index 7f6622a..4d64ee2 100644 --- a/backend/ev-page-cache.c +++ b/backend/ev-page-cache.c @@ -290,7 +290,7 @@ ev_page_cache_next_page (EvPageCache *page_cache) { g_return_val_if_fail (EV_IS_PAGE_CACHE (page_cache), FALSE); - if (page_cache->current_page >= page_cache->n_pages) + if (page_cache->current_page >= page_cache->n_pages - 1) return FALSE; ev_page_cache_set_current_page (page_cache, page_cache->current_page + 1); -- cgit v0.9.1