diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-30 16:29:03 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-30 16:29:03 +0000 |
commit | f76fe4d82dbde6c3d9f90839c03af1afdc5ae964 (patch) | |
tree | 8fb928d355d25f0be28091445e2278ee6842953c /draw/draw_affine.c | |
parent | b4f5216ebd8be87ff54d5ea6fb34f5edf777c0b6 (diff) | |
download | mupdf-f76fe4d82dbde6c3d9f90839c03af1afdc5ae964.tar.xz |
Fix typo in draw/draw_affine.c causing offsetting of shape plane
The shape plane was being incorrectly offset from the dest plane.
This could have caused SEGVs or incorrect results when blending
back.
This solves the hivemind.pdf iphone being clipped on the right hand
side.
Diffstat (limited to 'draw/draw_affine.c')
-rw-r--r-- | draw/draw_affine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/draw_affine.c b/draw/draw_affine.c index 61936ad9..a90ac087 100644 --- a/draw/draw_affine.c +++ b/draw/draw_affine.c @@ -677,7 +677,7 @@ fz_paint_image_imp(fz_pixmap *dst, fz_bbox scissor, fz_pixmap *shape, fz_pixmap if (shape) { hw = shape->w; - hp = shape->samples + ((y - shape->y) * hw) + x - dst->x; + hp = shape->samples + ((y - shape->y) * hw) + x - shape->x; } else { |