From: Jani Monoses Date: Tue, 17 Jan 2006 22:54:02 +0000 (+0000) Subject: Fix crash when saving pixbuf. X-Git-Tag: EVINCE_0_5_0~4 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=f31f98d1c68e4d665dbf2dd99a8e87f43092d953;p=evince.git Fix crash when saving pixbuf. 2006-01-18 Jani Monoses * backend/ev-document-factory.c: (ev_document_factory_get_backend): Fix crash when saving pixbuf. --- diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c index 38054ba1..e15f7213 100644 --- a/backend/ev-document-factory.c +++ b/backend/ev-document-factory.c @@ -185,6 +185,10 @@ ev_document_factory_get_backend (EvDocument *document) } } +#ifdef ENABLE_PIXBUF + if (G_TYPE_FROM_INSTANCE (document) == pixbuf_document_get_type ()) + return EV_BACKEND_PIXBUF; +#endif g_assert_not_reached (); return 0;