[gs-cvs] rev 9314 - trunk/gs/base

till at ghostscript.com till at ghostscript.com
Sun Jan 4 11:57:07 PST 2009


Author: till
Date: 2009-01-04 11:57:07 -0800 (Sun, 04 Jan 2009)
New Revision: 9314

Modified:
   trunk/gs/base/gdevbbox.c
Log:
Fix segmentation fault on -sDEVICE=bbox, contributed to Debian by Yaroslav Halchenko.


Modified: trunk/gs/base/gdevbbox.c
===================================================================
--- trunk/gs/base/gdevbbox.c	2009-01-03 22:45:50 UTC (rev 9313)
+++ trunk/gs/base/gdevbbox.c	2009-01-04 19:57:07 UTC (rev 9314)
@@ -225,7 +225,7 @@
 
     if (tdev != 0)
 	gx_device_copy_params((gx_device *)bdev, tdev);
-    if (remap_colors) {
+    if (remap_colors && bdev->is_open) {
 	bdev->black = gx_device_black((gx_device *)bdev);
 	bdev->white = gx_device_white((gx_device *)bdev);
 	bdev->transparent =



More information about the gs-cvs mailing list