From 3fe3051453cad77a2964c96b53caf4e5a432b2fe Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Sun, 03 May 2009 11:35:39 +0000 Subject: [document] Fixes handling of broken documents Instead of aborting on assertion, we gracefully report that document is broken. Fixes GNOME bug #580886. --- (limited to 'backend/pdf') 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; -- cgit v0.9.1