[gs-cvs] rev 8395 - trunk/gs/src
henrys at ghostscript.com
henrys at ghostscript.com
Tue Nov 20 22:10:53 PST 2007
Author: henrys
Date: 2007-11-20 22:10:53 -0800 (Tue, 20 Nov 2007)
New Revision: 8395
Modified:
trunk/gs/src/gdevp14.c
Log:
Check that a device halftone exists before writing it. Fixes
segmentation fault in xps. No differences expected.
Modified: trunk/gs/src/gdevp14.c
===================================================================
--- trunk/gs/src/gdevp14.c 2007-11-21 05:57:23 UTC (rev 8394)
+++ trunk/gs/src/gdevp14.c 2007-11-21 06:10:53 UTC (rev 8395)
@@ -4186,8 +4186,9 @@
* Ensure that the tranfer functions, etc. are current before we
* dump our transparency image to the output device.
*/
- code = cmd_put_halftone((gx_device_clist_writer *)
- (((pdf14_clist_device *)dev)->target), pis->dev_ht);
+ if (pis->dev_ht)
+ code = cmd_put_halftone((gx_device_clist_writer *)
+ (((pdf14_clist_device *)dev)->target), pis->dev_ht);
break;
default:
break; /* do nothing for remaining ops */
More information about the gs-cvs
mailing list