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
+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.
+
2008-08-24 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-window.c: (ev_window_setup_document),
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);