diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-04-03 19:51:24 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-04-06 19:32:00 +0100 |
commit | 928939c346e12ecce75d8de573b13c411f1bebd5 (patch) | |
tree | 79962a4adf3b96cc203e88c145bd39dec23a1b7e /platform/x11/x11_main.c | |
parent | 4c9611cb3d9f18322f8e77f8ba493799d77c0a0a (diff) | |
download | mupdf-928939c346e12ecce75d8de573b13c411f1bebd5.tar.xz |
Bug 693688: MuPDF viewer; if reload fails, don't crash out.
Use a placeholder document instead - just a big red 'X'.
Supposedly lots of people use MuPDF to view the output of their TeX
documents. Sometimes the compilation of the TeX document fails, and
reload results in MuPDF closing. This should allow their window to
stay open until they fix the problem and reload again.
Diffstat (limited to 'platform/x11/x11_main.c')
-rw-r--r-- | platform/x11/x11_main.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c index 085c58d8..0da79469 100644 --- a/platform/x11/x11_main.c +++ b/platform/x11/x11_main.c @@ -713,12 +713,6 @@ void winreloadpage(pdfapp_t *app) XCloseDisplay(dpy); } -void winreloadfile(pdfapp_t *app) -{ - pdfapp_close(app); - pdfapp_open(app, filename, 1); -} - void winopenuri(pdfapp_t *app, char *buf) { char *browser = getenv("BROWSER"); @@ -1078,7 +1072,7 @@ int main(int argc, char **argv) { if (reloading) { - winreloadfile(&gapp); + pdfapp_reloadfile(&gapp); reloading = 0; } } |