From: Jonathan Blandford Date: Thu, 24 Mar 2005 04:50:37 +0000 (+0000) Subject: add 1 to the page, as this seems to be 1 based. I thought we has this X-Git-Tag: EVINCE_0_2_0~35 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=d547902efb856e675cf9638528dbcd8c249dc4eb;p=evince.git add 1 to the page, as this seems to be 1 based. I thought we has this Wed Mar 23 23:49:41 2005 Jonathan Blandford * pdf/pdf-document.cc (pdf_document_thumbnails_get_thumbnail): add 1 to the page, as this seems to be 1 based. I thought we has this fixed. grump. --- diff --git a/ChangeLog b/ChangeLog index c4eada24..81a3448d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Mar 23 23:49:41 2005 Jonathan Blandford + + * pdf/pdf-document.cc (pdf_document_thumbnails_get_thumbnail): add + 1 to the page, as this seems to be 1 based. I thought we has this + fixed. grump. + 2005-03-23 Marco Pesenti Gritti * TODO: diff --git a/pdf/pdf-document.cc b/pdf/pdf-document.cc index 0d0ad893..065130fb 100644 --- a/pdf/pdf-document.cc +++ b/pdf/pdf-document.cc @@ -1428,6 +1428,9 @@ pdf_document_thumbnails_get_thumbnail (EvDocumentThumbnails *document_thumbnails Thumb *thumb = NULL; gboolean have_ethumbs = FALSE; + /* Add 1 to page. !@#!!~!#!@#! */ + page ++; + the_page = pdf_document->doc->getCatalog ()->getPage (page); the_page->getThumb(&the_thumb);