summaryrefslogtreecommitdiff
path: root/fitz/doc_document.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/doc_document.c')
-rw-r--r--fitz/doc_document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/doc_document.c b/fitz/doc_document.c
index 15ad4b62..22229892 100644
--- a/fitz/doc_document.c
+++ b/fitz/doc_document.c
@@ -27,7 +27,7 @@ fz_document *
fz_open_document(fz_context *ctx, char *filename)
{
char *ext = strrchr(filename, '.');
- if (ext && !fz_strcasecmp(ext, ".xps"))
+ if (ext && (!fz_strcasecmp(ext, ".xps") || !fz_strcasecmp(ext, ".rels")))
return (fz_document*) xps_open_document(ctx, filename);
if (ext && !fz_strcasecmp(ext, ".cbz"))
return (fz_document*) cbz_open_document(ctx, filename);