diff options
author | Henry Stiles <henry.stiles@artifex.com> | 2018-10-18 13:31:08 -0600 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 2018-10-18 13:57:23 -0600 |
commit | 635dad8721def9da27e13b849ba8e37023703501 (patch) | |
tree | f5cfbbb23a727fb49b1c711d8b3f51c2270b1a3c /xps | |
parent | eb473839eed3eeaf9acc7db4d88a3a0a8ca5f432 (diff) | |
download | ghostpdl-635dad8721def9da27e13b849ba8e37023703501.tar.gz |
Remove unnecessary gs_opendevice() calls
For reasons unknown the target device was being opened prior to the
languages setting and opening the device with gs_setdevice_no_erase().
This is unnecessary and apparently wrong, gs_opendevice() does not
properly fill in the the device procedures (gx_device_fill_in_procs()).
Diffstat (limited to 'xps')
-rw-r--r-- | xps/xpstop.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/xps/xpstop.c b/xps/xpstop.c index 6ec6d21ab..feb7a9357 100644 --- a/xps/xpstop.c +++ b/xps/xpstop.c @@ -165,10 +165,6 @@ xps_imp_set_device(pl_interp_implementation_t *impl, gx_device *pdevice) gs_c_param_list list; int code; - code = gs_opendevice(pdevice); - if (code < 0) - goto cleanup_setdevice; - code = gs_setdevice_no_erase(ctx->pgs, pdevice); if (code < 0) goto cleanup_setdevice; |