diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-04-15 12:01:05 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-04-15 12:01:05 (GMT) |
commit | f33d56a3b152b000ebc6b95e011409c4eeab55a3 (patch) | |
tree | 33a6a202d3fb61a5a0083c8eaf1a33ca9497eed6 /backend | |
parent | 3fff491455c8e99884d6bcaed1cdc39568784d95 (diff) |
Fix several page size caching bugs
2005-04-15 Marco Pesenti Gritti <mpg@redhat.com>
* backend/ev-page-cache.c: (_ev_page_cache_new):
Fix several page size caching bugs
Diffstat (limited to 'backend')
-rw-r--r-- | backend/ev-page-cache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/ev-page-cache.c b/backend/ev-page-cache.c index 4d64ee2..5a713da 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; |