]> www.fi.muni.cz Git - evince.git/commitdiff
view: do not call get_thumbnail_frame when pixbuf is NULL.
authorJosé Aliste <jaliste@src.gnome.org>
Fri, 26 Nov 2010 15:01:01 +0000 (12:01 -0300)
committerJosé Aliste <jaliste@src.gnome.org>
Fri, 26 Nov 2010 17:12:50 +0000 (14:12 -0300)
libview/ev-jobs.c

index 561a0f98aaf1b179c67b3ba4865c24368ba85378..ee58943e1bc2c637c4d0d3320dec2bb974d0b4ba 100644 (file)
@@ -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);