X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-document-factory.c;h=c7732d8bfb9f9e85b81265b7d0434baf7822425d;hb=f0b7075e647626890908db0d630d88a4e4f779b5;hp=962f42a604250c39857e9df399ed0a29ab4cba36;hpb=0b94e1fcf335f0131e5ff81cbe87b2e9ac343ab6;p=evince.git diff --git a/libdocument/ev-document-factory.c b/libdocument/ev-document-factory.c index 962f42a6..c7732d8b 100644 --- a/libdocument/ev-document-factory.c +++ b/libdocument/ev-document-factory.c @@ -180,13 +180,11 @@ get_document_from_uri (const char *uri, return NULL; } + document = ev_backends_manager_get_document (mime_type); + #ifdef ENABLE_PIXBUF - if (mime_type_supported_by_gdk_pixbuf (mime_type)) + if (!document && mime_type_supported_by_gdk_pixbuf (mime_type)) document = ev_backends_manager_get_document ("image/*"); - else - document = ev_backends_manager_get_document (mime_type); -#else - document = ev_backends_manager_get_document (mime_type); #endif /* ENABLE_PIXBUF */ if (document == NULL) {