]> www.fi.muni.cz Git - evince.git/commitdiff
Fix crash when saving pixbuf.
authorJani Monoses <jani.monoses@gmail.com>
Tue, 17 Jan 2006 22:54:02 +0000 (22:54 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Tue, 17 Jan 2006 22:54:02 +0000 (22:54 +0000)
2006-01-18  Jani Monoses <jani.monoses@gmail.com>

* backend/ev-document-factory.c: (ev_document_factory_get_backend):

Fix crash when saving pixbuf.

backend/ev-document-factory.c

index 38054ba17a557578a999b66f475887c677d813dd..e15f7213750c6831e94fa9cb2847a2f135dfd491 100644 (file)
@@ -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;