summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2012-04-29 23:36:02 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2012-04-30 12:38:44 -0700
commite8f8eed2369d5e8709acd0aa65306758aa322e3d (patch)
tree763c92f7ac9e2a4976d0ccd8346dbcac1467a7dd
parent3cde6d6d3d24a0930d591df9914ddda194d13b37 (diff)
Initialize color procs for clip list accumulator
There are calls made during filling with this device to get the black point of the device due to some ROP related call. The device did not have any procedures for mapping colors or for decode and encode. Fix for Bug 692720.
-rw-r--r--gs/base/gxacpath.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gs/base/gxacpath.c b/gs/base/gxacpath.c
index 6414f24ef..a1b40420e 100644
--- a/gs/base/gxacpath.c
+++ b/gs/base/gxacpath.c
@@ -105,7 +105,7 @@ static const gx_device_cpath_accum gs_cpath_accum_device =
NULL, /* begin_transparency_mask */
NULL, /* end_transparency_mask */
NULL, /* discard_transparency_layer */
- NULL, /* get_color_mapping_procs */
+ gx_default_DevGray_get_color_mapping_procs,
NULL, /* get_color_comp_index */
NULL, /* encode_color */
NULL, /* decode_color */
@@ -138,6 +138,8 @@ gx_cpath_accum_begin(gx_device_cpath_accum * padev, gs_memory_t * mem)
padev->list_memory = mem;
padev->memory = mem; /* gx_general_fill_path may need a storage
for dropout prevention buffer. */
+ set_dev_proc(padev, encode_color, gx_default_gray_encode);
+ set_dev_proc(padev, decode_color, gx_default_decode_color);
(*dev_proc(padev, open_device)) ((gx_device *) padev);
}