From: Marco Pesenti Gritti Date: Fri, 15 Apr 2005 12:01:05 +0000 (+0000) Subject: Fix several page size caching bugs X-Git-Tag: EVINCE_0_2_1~52 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=f33d56a3b152b000ebc6b95e011409c4eeab55a3;p=evince.git Fix several page size caching bugs 2005-04-15 Marco Pesenti Gritti * backend/ev-page-cache.c: (_ev_page_cache_new): Fix several page size caching bugs --- diff --git a/ChangeLog b/ChangeLog index eead1ca5..26608b51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-04-15 Marco Pesenti Gritti + + * backend/ev-page-cache.c: (_ev_page_cache_new): + + Fix several page size caching bugs + 2005-04-15 Luca Ferretti * shell/ev-window.c: (set_action_properties): diff --git a/backend/ev-page-cache.c b/backend/ev-page-cache.c index 4d64ee2e..5a713dab 100644 --- a/backend/ev-page-cache.c +++ b/backend/ev-page-cache.c @@ -123,17 +123,17 @@ _ev_page_cache_new (EvDocument *document) page_cache->size_cache = g_new0 (EvPageCacheInfo, page_cache->n_pages); - for (j = 1; j < i; j++) { - info = &(page_cache->size_cache [j - 1]); - info->width = page_width; - info->height = page_height; + for (j = 0; j < i; j++) { + info = &(page_cache->size_cache [j]); + info->width = page_cache->uniform_width; + info->height = page_cache->uniform_height; } page_cache->uniform = FALSE; } if (! page_cache->uniform) { - info = &(page_cache->size_cache [i - 1]); + info = &(page_cache->size_cache [i]); info->width = page_width; info->height = page_height;