+2006-10-08 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * backend/ev-document-factory.c:
+ (ev_document_factory_get_document):
+
+ Load document even if extension is wrong.
+
2006-10-03 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* shell/ev-metadata-manager.c: (save_values):
document = get_document_from_uri (uri, FALSE, error);
- if (*error != NULL) {
- return NULL;
- }
-
- result = ev_document_load (document, uri, error);
-
- if (result == FALSE || *error) {
- if (*error &&
- (*error)->domain == EV_DOCUMENT_ERROR &&
- (*error)->code == EV_DOCUMENT_ERROR_ENCRYPTED)
+ if (*error == NULL) {
+ result = ev_document_load (document, uri, error);
+
+ if (result == FALSE || *error) {
+ if (*error &&
+ (*error)->domain == EV_DOCUMENT_ERROR &&
+ (*error)->code == EV_DOCUMENT_ERROR_ENCRYPTED)
+ return document;
+ } else {
return document;
- } else {
- return document;
+ }
}
-
+
/* Try again with slow mime detection */
if (document)
g_object_unref (document);