From f5ecac0ca76fea93d50257d3b854f1fa3c255007 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Fri, 25 Mar 2005 21:57:14 +0000 Subject: [PATCH] Patch from Fernando Herrera to fix my quick fix to Fri Mar 25 16:55:58 2005 Jonathan Blandford * pdf/pdf-document.cc: Patch from Fernando Herrera to fix my quick fix to get_thumbnail. *blush* --- ChangeLog | 6 ++++++ pdf/pdf-document.cc | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 81a3448d..00b6ceb2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Mar 25 16:55:58 2005 Jonathan Blandford + + * pdf/pdf-document.cc: Patch from Fernando Herrera + to fix my quick fix to get_thumbnail. + *blush* + Wed Mar 23 23:49:41 2005 Jonathan Blandford * pdf/pdf-document.cc (pdf_document_thumbnails_get_thumbnail): add diff --git a/pdf/pdf-document.cc b/pdf/pdf-document.cc index 065130fb..a0bb9358 100644 --- a/pdf/pdf-document.cc +++ b/pdf/pdf-document.cc @@ -1354,7 +1354,7 @@ pdf_document_thumbnails_get_page_pixbuf (PdfDocument *pdf_document, output = new SplashOutputDev (splashModeRGB8, gFalse, color); output->startDoc (pdf_document->doc->getXRef()); pdf_document->doc->displayPage (output, - page_num, + page_num + 1, 72*scale_factor, 72*scale_factor, 0, gTrue, gFalse); @@ -1428,10 +1428,7 @@ 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 = pdf_document->doc->getCatalog ()->getPage (page + 1); the_page->getThumb(&the_thumb); if (!(the_thumb.isNull () || the_thumb.isNone())) { -- 2.43.5