summaryrefslogtreecommitdiff
path: root/xps
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2012-03-16 14:25:06 -0600
committerHenry Stiles <henry.stiles@artifex.com>2012-03-16 14:25:06 -0600
commit2cd895c6ad8e4e1ace368d04a783bf0cccb30f3c (patch)
tree3dcc92ad0ebd43f399fb8a8a253f4b08b63f4120 /xps
parent25b6a2cdeb5a90bb7803958f2bf15b618fbcf120 (diff)
Fixes Bug 692931 - Regression: seg fault
The ICC parameters were set when the interpreter was allocated before the the command line options were actually set, resulting in a crash.
Diffstat (limited to 'xps')
-rw-r--r--xps/xpstop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xps/xpstop.c b/xps/xpstop.c
index 1538b9ce2..cadc6d8c6 100644
--- a/xps/xpstop.c
+++ b/xps/xpstop.c
@@ -177,7 +177,6 @@ xps_imp_allocate_interp_instance(pl_interp_instance_t **ppinstance,
gs_setaligntopixels(ctx->fontdir, 1); /* no subpixels */
gs_setgridfittt(ctx->fontdir, 1); /* see gx_ttf_outline in gxttfn.c for values */
- (void)xps_set_icc_user_params((pl_interp_instance_t *)instance, ctx->pgs);
*ppinstance = (pl_interp_instance_t *)instance;
return 0;
@@ -232,6 +231,7 @@ xps_imp_set_device(pl_interp_instance_t *pinstance, gx_device *pdevice)
gs_setaccuratecurves(ctx->pgs, true); /* NB not sure */
gs_setfilladjust(ctx->pgs, 0, 0);
+ (void)xps_set_icc_user_params((pl_interp_instance_t *)instance, ctx->pgs);
/* gsave and grestore (among other places) assume that */
/* there are at least 2 gstates on the graphics stack. */