2006-04-06 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/ev-document-factory.c:
Do not load the document twice when there isn't errors
+2006-04-06 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * backend/ev-document-factory.c:
+
+ Do not load the document twice when there isn't errors
+
2006-04-03 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/ev-attachment.c:
gnome_vfs_file_info_unref (info);
return NULL;
}
-
+
document = ev_document_factory_get_from_mime (info->mime_type);
if (document == NULL) {
ev_document_factory_get_document (const char *uri, GError **error)
{
EvDocument *document;
-
+
document = get_document_from_uri (uri, FALSE, error);
if (*error == NULL) {
if (*error) {
g_error_free (*error);
*error = NULL;
+ } else {
+ return document;
}
document = get_document_from_uri (uri, TRUE, error);