Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2009-05-03 11:35:39 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@yandex.ru>2009-05-03 11:35:39 (GMT)
commit3fe3051453cad77a2964c96b53caf4e5a432b2fe (patch)
tree9f7eb2f27446ab3db589fc4f11e00789722921bb /backend
parentab20ff2e5e9e3f41be38269fd1023fad8fdc57fe (diff)
[document] Fixes handling of broken documents
Instead of aborting on assertion, we gracefully report that document is broken. Fixes GNOME bug #580886.
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 3c39e59..70af88e 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1341,7 +1341,7 @@ pdf_document_thumbnails_get_thumbnail (EvDocumentThumbnails *document_thumbnails
pixbuf = make_thumbnail_for_page (poppler_page, rc, width, height);
}
- if (border) {
+ if (border && pixbuf) {
border_pixbuf = ev_document_misc_get_thumbnail_frame (-1, -1, pixbuf);
g_object_unref (pixbuf);
pixbuf = border_pixbuf;