summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-07 14:39:17 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-07 14:39:17 +0200
commit567ad2330ec8be4f23014a0a3e8dce11bcd1eada (patch)
tree0ca643fd1350da7355e7152fe460f2b9d855e285 /apps
parent6294585ac2dfe73654a9ac5965517219e4ea7ede (diff)
downloadmupdf-567ad2330ec8be4f23014a0a3e8dce11bcd1eada.tar.xz
Use fz_stream instead of FILE* to open XPS files.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfapp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c
index 46459497..fc2cfdfb 100644
--- a/apps/pdfapp.c
+++ b/apps/pdfapp.c
@@ -179,7 +179,7 @@ static void pdfapp_open_xps(pdfapp_t *app, char *filename, int fd)
void pdfapp_open(pdfapp_t *app, char *filename, int fd)
{
- if (strstr(filename, ".xps") || strstr(filename, ".XPS"))
+ if (strstr(filename, ".xps") || strstr(filename, ".XPS") || strstr(filename, ".rels"))
pdfapp_open_xps(app, filename, fd);
else
pdfapp_open_pdf(app, filename, fd);