From 82b600dac5eb34b0c156302581303be834d655ce Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 24 May 2016 19:55:42 +0100 Subject: Cope better when asked to plot alpha only pixmaps. Converting a pixmap to an alpha only pixmap means "just keep the alpha". If there IS no alpha, then a solid alpha is assumed. --- source/fitz/draw-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz/draw-device.c') diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c index 516e05bc..88e117c7 100644 --- a/source/fitz/draw-device.c +++ b/source/fitz/draw-device.c @@ -1227,7 +1227,7 @@ fz_draw_fill_image(fz_context *ctx, fz_device *devp, fz_image *image, const fz_m { fz_irect bbox; fz_pixmap_bbox(ctx, pixmap, &bbox); - converted = fz_new_pixmap_with_bbox(ctx, model, &bbox, pixmap->alpha); + converted = fz_new_pixmap_with_bbox(ctx, model, &bbox, (model ? pixmap->alpha : 1)); fz_convert_pixmap(ctx, converted, pixmap); pixmap = converted; } -- cgit v1.2.3