From 35d75eac9c627fda24282e602562c064e394e5fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Aliste?= Date: Fri, 26 Nov 2010 12:01:01 -0300 Subject: [PATCH] view: do not call get_thumbnail_frame when pixbuf is NULL. --- libview/ev-jobs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c index 561a0f98..ee58943e 100644 --- a/libview/ev-jobs.c +++ b/libview/ev-jobs.c @@ -814,7 +814,8 @@ ev_job_thumbnail_run (EvJob *job) g_object_unref (rc); ev_document_doc_mutex_unlock (); - job_thumb->thumbnail = ev_document_misc_get_thumbnail_frame (-1, -1, pixbuf); + if (pixbuf) + job_thumb->thumbnail = ev_document_misc_get_thumbnail_frame (-1, -1, pixbuf); g_object_unref (pixbuf); ev_job_succeeded (job); -- 2.43.5