diff options
Diffstat (limited to 'source/fitz/draw-unpack.c')
-rw-r--r-- | source/fitz/draw-unpack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/draw-unpack.c b/source/fitz/draw-unpack.c index 8ac76bdc..ccb3c62f 100644 --- a/source/fitz/draw-unpack.c +++ b/source/fitz/draw-unpack.c @@ -222,7 +222,7 @@ fz_decode_tile(fz_context *ctx, fz_pixmap *pix, const float *decode) unsigned char *p = pix->samples; int stride = pix->stride - pix->w * pix->n; int len; - int n = fz_maxi(1, pix->n - 1); + int n = fz_maxi(1, pix->n - pix->alpha); int needed; int k; int h; |