Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-08-25 15:20:07 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-08-25 15:20:07 (GMT)
commit7c7b633bd2b8ceafe4c7172b4606bcbb386bbc5c (patch)
tree5c601fb2912481a2bd67e7e5a50af1897861460c /backend
parentb8bb6cf058641d8aa77fde650007a77afbd77b4a (diff)
Make sure thumbnail size returned by the PDF is actually valid. Fixes bug
2008-08-25 Carlos Garcia Campos <carlosgc@gnome.org> * backend/pdf/ev-poppler.cc: (pdf_document_thumbnails_get_dimensions): Make sure thumbnail size returned by the PDF is actually valid. Fixes bug #548462. svn path=/trunk/; revision=3119
Diffstat (limited to 'backend')
-rw-r--r--backend/pdf/ev-poppler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 04f4c65..4687ac2 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1338,7 +1338,7 @@ pdf_document_thumbnails_get_dimensions (EvDocumentThumbnails *document_thumbnail
has_thumb = poppler_page_get_thumbnail_size (poppler_page, width, height);
- if (!has_thumb) {
+ if (!has_thumb || *width <= 0 || *height <= 0) {
double page_width, page_height;
poppler_page_get_size (poppler_page, &page_width, &page_height);