From: Nickolay V. Shmyrev Date: Mon, 3 Apr 2006 14:28:46 +0000 (+0000) Subject: Fallback even if extension is unknown X-Git-Tag: EVINCE_0_5_3~59 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=1ad8b6b9bd67fa4d6ea23885ab2bef25f12316c6;p=evince.git Fallback even if extension is unknown --- 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;