2008-04-01 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/ps/ev-spectre.c: (ps_document_thumbnails_get_thumbnail):
Do not crash when thumbnail failed to render in PS backend. Fixes
bug #525015.
svn path=/trunk/; revision=2986
+2008-04-01 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * backend/ps/ev-spectre.c: (ps_document_thumbnails_get_thumbnail):
+
+ Do not crash when thumbnail failed to render in PS backend. Fixes
+ bug #525015.
+
2008-03-31 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-window.c: (window_open_file_copy_ready_cb),
GdkPixbuf *pixbuf = NULL;
surface = ps_document_render (EV_DOCUMENT (ps), rc);
+ if (!surface) {
+ g_warning ("Error rendering thumbnail");
+ return NULL;
+ }
+
pixbuf = ev_document_misc_pixbuf_from_surface (surface);
cairo_surface_destroy (surface);