[gs-cvs] rev 7088 - trunk/gs/src

stefan at ghostscript.com stefan at ghostscript.com
Fri Oct 6 08:12:53 PDT 2006


Author: stefan
Date: 2006-10-06 08:12:52 -0700 (Fri, 06 Oct 2006)
New Revision: 7088

Modified:
   trunk/gs/src/gxclimag.c
Log:
Merge fix from pcl tree, 
writing a display list with a contone device seg faulted.



Modified: trunk/gs/src/gxclimag.c
===================================================================
--- trunk/gs/src/gxclimag.c	2006-10-06 14:08:05 UTC (rev 7087)
+++ trunk/gs/src/gxclimag.c	2006-10-06 15:12:52 UTC (rev 7088)
@@ -993,8 +993,8 @@
     int code;
     const gx_device_halftone *pdht = pis->dev_ht;
 
-    /* Put out the halftone. */
-    if (pdht->id != cldev->device_halftone_id) {
+    /* Put out the halftone, if present. */
+    if (pdht && pdht->id != cldev->device_halftone_id) {
 	code = cmd_put_halftone(cldev, pdht);
 	if (code < 0)
 	    return code;



More information about the gs-cvs mailing list