diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-01-30 18:49:11 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-02-03 14:00:54 +0100 |
commit | 7b49558c65e124c0b9e5e4d3821ec5138589c472 (patch) | |
tree | c0da5af234f97545ed6314e2642406ec72a1c9ca | |
parent | bb1e3c973526e66024e1a3260255368034cb2008 (diff) | |
download | mupdf-7b49558c65e124c0b9e5e4d3821ec5138589c472.tar.xz |
Allow ZIP as extension for CBZ files.
-rw-r--r-- | apps/pdfapp.c | 2 | ||||
-rw-r--r-- | apps/win_main.c | 2 | ||||
-rw-r--r-- | ios/document.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c index 20e67c62..b3a2c884 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -214,7 +214,7 @@ void pdfapp_open(pdfapp_t *app, char *filename, int fd, int reload) { if (strstr(filename, ".xps") || strstr(filename, ".XPS") || strstr(filename, ".rels")) pdfapp_open_xps(app, filename, fd); - else if (strstr(filename, ".cbz") || strstr(filename, ".CBZ")) + else if (strstr(filename, ".cbz") || strstr(filename, ".CBZ") || strstr(filename, ".zip") || strstr(filename, ".ZIP")) pdfapp_open_cbz(app, filename, fd); else pdfapp_open_pdf(app, filename, fd); diff --git a/apps/win_main.c b/apps/win_main.c index fc929a14..fcfd5020 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -111,7 +111,7 @@ int winfilename(wchar_t *buf, int len) ofn.nMaxFile = len; ofn.lpstrInitialDir = NULL; ofn.lpstrTitle = L"MuPDF: Open PDF file"; - ofn.lpstrFilter = L"Documents (*.pdf;*.xps;*.cbz)\0*.cbz;*.xps;*.pdf\0PDF Files (*.pdf)\0*.pdf\0XPS Files (*.xps)\0*.xps\0CBZ Files (*cbz)\0*.cbz\0All Files\0*\0\0"; + ofn.lpstrFilter = L"Documents (*.pdf;*.xps;*.cbz;*.zip)\0*.zip;*.cbz;*.xps;*.pdf\0PDF Files (*.pdf)\0*.pdf\0XPS Files (*.xps)\0*.xps\0CBZ Files (*.cbz;*.zip)\0*.zip;*.cbz\0All Files\0*\0\0"; ofn.Flags = OFN_FILEMUSTEXIST|OFN_HIDEREADONLY; return GetOpenFileNameW(&ofn); } diff --git a/ios/document.c b/ios/document.c index d17d1392..a15d97fd 100644 --- a/ios/document.c +++ b/ios/document.c @@ -22,7 +22,7 @@ open_document(fz_context *ctx, char *filename) doc->pdf = pdf_open_document(ctx, filename); else if (strstr(filename, ".xps") || strstr(filename, ".XPS")) doc->xps = xps_open_document(ctx, filename); - else if (strstr(filename, ".cbz") || strstr(filename, ".CBZ")) + else if (strstr(filename, ".cbz") || strstr(filename, ".CBZ") || strstr(filename, ".zip") || strstr(filename, ".ZIP")) doc->cbz = cbz_open_document(ctx, filename); else fz_throw(ctx, "unknown document format"); |