summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2011-09-27 11:36:28 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2011-09-27 11:37:31 -0700
commit48e7b9e6aaf93eded227a089b94f90db209476ff (patch)
tree598a4763a1e0532e9b392d0d539350f2fa33e82c
parentddf450125929a9c261b3f7f99ec29c8da69b0207 (diff)
Fix for Bug 692378
The function which decodes runs of compressed color values was not reseting the solid color value as we looped through the line. So, if it was altered during one compressed color decode in the line, subsequent values were affected.
-rw-r--r--gs/base/gdevdevn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gs/base/gdevdevn.c b/gs/base/gdevdevn.c
index 447008f08..c22b8d1f8 100644
--- a/gs/base/gdevdevn.c
+++ b/gs/base/gdevdevn.c
@@ -1509,9 +1509,10 @@ devn_unpack_row(gx_device * dev, int num_comp, gs_devn_params * pdevn_params,
1509 int factor, bit_count, bit_mask; 1509 int factor, bit_count, bit_mask;
1510 comp_bit_map_list_t * pbitmap; 1510 comp_bit_map_list_t * pbitmap;
1511 gx_color_index color; 1511 gx_color_index color;
1512 gx_color_value solid_color = gx_max_color_value;
1513 1512
1514 for (pixel_num = 0; pixel_num < width; pixel_num++) { 1513 for (pixel_num = 0; pixel_num < width; pixel_num++) {
1514 gx_color_value solid_color = gx_max_color_value;
1515
1515 /* 1516 /*
1516 * Get the encoded color value. 1517 * Get the encoded color value.
1517 */ 1518 */