summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-30 16:29:03 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-30 16:29:03 +0000
commitf76fe4d82dbde6c3d9f90839c03af1afdc5ae964 (patch)
tree8fb928d355d25f0be28091445e2278ee6842953c /draw
parentb4f5216ebd8be87ff54d5ea6fb34f5edf777c0b6 (diff)
downloadmupdf-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')
-rw-r--r--draw/draw_affine.c2
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
{