]> www.fi.muni.cz Git - evince.git/commitdiff
Patch from Fernando Herrera <fherrera@onirica.com> to fix my quick fix to
authorJonathan Blandford <jrb@redhat.com>
Fri, 25 Mar 2005 21:57:14 +0000 (21:57 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Fri, 25 Mar 2005 21:57:14 +0000 (21:57 +0000)
Fri Mar 25 16:55:58 2005  Jonathan Blandford  <jrb@redhat.com>

        * pdf/pdf-document.cc: Patch from Fernando Herrera
        <fherrera@onirica.com> to fix my quick fix to get_thumbnail.
        *blush*

ChangeLog
pdf/pdf-document.cc

index 81a3448d009550f876d4636cf1e02926774c7dbc..00b6ceb248d4825e38cf67fb4ce79ff967f2d5e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Mar 25 16:55:58 2005  Jonathan Blandford  <jrb@redhat.com>
+
+       * pdf/pdf-document.cc: Patch from Fernando Herrera
+       <fherrera@onirica.com> to fix my quick fix to get_thumbnail.
+       *blush*
+
 Wed Mar 23 23:49:41 2005  Jonathan Blandford  <jrb@redhat.com>
 
        * pdf/pdf-document.cc (pdf_document_thumbnails_get_thumbnail): add
index 065130fbdacd9aec00ed9fd8f3d03c895b9c36af..a0bb9358d58820ab8802cb328e2f59775cf6f8a3 100644 (file)
@@ -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())) {