From 38f7744fb201f07db6035a55cfadfc7f55a41f57 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 13 Dec 2012 16:18:54 +0000 Subject: 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. --- apps/x11_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps') 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) -- cgit v1.2.3