Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-03-12 09:56:03 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-03-12 09:56:03 (GMT)
commitf06e050d41051f1ea95b40981aee32ef8e0b0bae (patch)
tree7333133c0f77e4ea42a98554467dd8bbdfc01f0b /pdf
parent1efe0593969bf7f461cf8298a75daddfbb6da678 (diff)
Fix the mess we did with thumbnails and 1-basedness
2005-03-12 Marco Pesenti Gritti <marco@gnome.org> * pdf/pdf-document.cc: * shell/ev-sidebar-thumbnails.c: (adjustment_changed_cb), (do_one_iteration), (ev_sidebar_thumbnails_set_document): Fix the mess we did with thumbnails and 1-basedness
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf-document.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/pdf/pdf-document.cc b/pdf/pdf-document.cc
index 8d74c86..fc2568b 100644
--- a/pdf/pdf-document.cc
+++ b/pdf/pdf-document.cc
@@ -1252,7 +1252,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 + 1,
+ page_num,
72*scale_factor,
72*scale_factor,
0, gTrue, gFalse);
@@ -1287,7 +1287,7 @@ pdf_document_thumbnails_get_dimensions (EvDocumentThumbnails *document_thumbnail
Object the_thumb;
Thumb *thumb = NULL;
- the_page = pdf_document->doc->getCatalog ()->getPage (page + 1);
+ the_page = pdf_document->doc->getCatalog ()->getPage (page);
the_page->getThumb (&the_thumb);
if (!(the_thumb.isNull () || the_thumb.isNone())) {
@@ -1326,8 +1326,7 @@ pdf_document_thumbnails_get_thumbnail (EvDocumentThumbnails *document_thumbnails
Thumb *thumb = NULL;
gboolean have_ethumbs = FALSE;
- /* getPage seems to want page + 1 for some reason; */
- the_page = pdf_document->doc->getCatalog ()->getPage (page + 1);
+ the_page = pdf_document->doc->getCatalog ()->getPage (page);
the_page->getThumb(&the_thumb);
if (!(the_thumb.isNull () || the_thumb.isNone())) {