summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2018-09-06 12:56:51 +0100
committerRobin Watts <robin.watts@artifex.com>2018-09-06 13:14:32 +0100
commit68eca5e94e6f63f4392b15581ad41af52e0edfd9 (patch)
treea66f83f97549732c2b29da4e05ebf5b6d7e10c1a
parent6473ad1394900c79a7ca5335accaaad9cd67d42a (diff)
downloadghostpdl-68eca5e94e6f63f4392b15581ad41af52e0edfd9.tar.gz
Fix SEGV seen in all-devices test with plank examples/ridt91.eps
Silly typo in the contone fill code for the landscape flippedy color cache case.
-rw-r--r--base/gximono.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gximono.c b/base/gximono.c
index 2971f40f3..276db6964 100644
--- a/base/gximono.c
+++ b/base/gximono.c
@@ -1222,8 +1222,8 @@ image_render_mono_ht(gx_image_enum * penum_orig, const byte * buffer, int data_x
dev_value = &(color_cache[*psrc * spp_out]);
for (j = 0; j < spp_out; j++) {
*(devc_contone[j] + position) = dev_value[j];
- position -= LAND_BITS;
}
+ position -= LAND_BITS;
xr--;
} /* at loop exit xn will be <= xr */
psrc++;
@@ -1259,8 +1259,8 @@ image_render_mono_ht(gx_image_enum * penum_orig, const byte * buffer, int data_x
dev_value = &(color_cache[*psrc * spp_out]);
for (j = 0; j < spp_out; j++) {
*(devc_contone[j] + position) = dev_value[j];
- devc_contone[j] += LAND_BITS;
}
+ position += LAND_BITS;
xr++;
} /* at loop exit xn will be >= xr */
psrc++;