summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-12-13 16:18:54 +0000
committerRobin Watts <robin.watts@artifex.com>2012-12-13 16:20:14 +0000
commit38f7744fb201f07db6035a55cfadfc7f55a41f57 (patch)
treecb922001f8256a3b172f6a7a9c7edea690ce8176 /apps
parent2d23251c4d233693a550cbb352b3de0adbcd030a (diff)
downloadmupdf-38f7744fb201f07db6035a55cfadfc7f55a41f57.tar.xz
Bug 693462: Tweak X11 app startup.
A user (stu-mupdf) points out that if winopen fails, we throw an error, which crashes due to the exception stack not having been set up yet. The solution is simply to move pdfapp_init a little earlier.
Diffstat (limited to 'apps')
-rw-r--r--apps/x11_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c
index f4f8b24f..9e35dafe 100644
--- a/apps/x11_main.c
+++ b/apps/x11_main.c
@@ -751,9 +751,10 @@ int main(int argc, char **argv)
if (argc - fz_optind == 1)
pageno = atoi(argv[fz_optind++]);
+ pdfapp_init(ctx, &gapp);
+
winopen();
- pdfapp_init(ctx, &gapp);
if (resolution == -1)
resolution = winresolution();
if (resolution < MINRES)