evince r3119 - in trunk: . backend/pdf
- From: carlosgc svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3119 - in trunk: . backend/pdf
- Date: Mon, 25 Aug 2008 15:20:07 +0000 (UTC)
Author: carlosgc
Date: Mon Aug 25 15:20:07 2008
New Revision: 3119
URL: http://svn.gnome.org/viewvc/evince?rev=3119&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/backend/pdf/ev-poppler.cc
Modified: trunk/backend/pdf/ev-poppler.cc
==============================================================================
--- trunk/backend/pdf/ev-poppler.cc (original)
+++ trunk/backend/pdf/ev-poppler.cc Mon Aug 25 15:20:07 2008
@@ -1338,7 +1338,7 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]