From 1ad8b6b9bd67fa4d6ea23885ab2bef25f12316c6 Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Mon, 3 Apr 2006 14:28:46 +0000 Subject: [PATCH] Fallback even if extension is unknown --- backend/ev-document-factory.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c index c02801fb..d31506db 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; -- 2.43.5