From 1ad8b6b9bd67fa4d6ea23885ab2bef25f12316c6 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Mon, 03 Apr 2006 14:28:46 +0000 Subject: Fallback even if extension is unknown --- diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c index c02801f..d31506d 100644 --- a/backend/ev-document-factory.c +++ b/backend/ev-document-factory.c @@ -283,12 +283,10 @@ ev_document_factory_get_document (const char *uri, GError **error) document = get_document_from_uri (uri, FALSE, error); - if (*error != NULL) { - return NULL; + if (*error == NULL) { + ev_document_load (document, uri, error); } - - ev_document_load (document, uri, error); - + if (*error) { g_error_free (*error); *error = NULL; -- cgit v0.9.1