From f31f98d1c68e4d665dbf2dd99a8e87f43092d953 Mon Sep 17 00:00:00 2001 From: Jani Monoses Date: Tue, 17 Jan 2006 22:54:02 +0000 Subject: [PATCH] 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. --- backend/ev-document-factory.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.43.5