diff options
author | Robin Watts <robin.watts@artifex.com> | 2018-03-14 13:09:58 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2018-03-14 13:10:59 +0000 |
commit | b925766ea8794f1924ce0dea9fa942966dea3350 (patch) | |
tree | 7acb003820d75f8edab64d09b9dda5c11b21d6b1 | |
parent | 3afca2bb825017a55aadb67beb1d3318ce5f5c56 (diff) | |
download | mupdf-b925766ea8794f1924ce0dea9fa942966dea3350.tar.xz |
Bug 699109: Fix overwrites with COP renderer.
-rw-r--r-- | source/fitz/draw-edgebuffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/draw-edgebuffer.c b/source/fitz/draw-edgebuffer.c index ffc892e1..83e77d44 100644 --- a/source/fitz/draw-edgebuffer.c +++ b/source/fitz/draw-edgebuffer.c @@ -1587,6 +1587,7 @@ static void fz_convert_edgebuffer(fz_context *ctx, fz_rasterizer *ras, int eofil a = pix->alpha; pl = fz_maxi(ras->clip.x0, pix->x); pr = fz_mini(ras->clip.x1, pix->x + pix->w); + pr -= pl; out = pix->samples + pix->stride * fz_maxi(ras->clip.y0 - pix->y, 0) + fz_maxi(ras->clip.x0 - pix->x, 0) * n; if (scanlines > pix->y + pix->h - ras->clip.y0) scanlines = pix->y + pix->h - ras->clip.y0; |