diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-07-06 14:50:22 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-07-06 15:49:55 +0200 |
commit | e2a85460370a3110b89fb838bc924c73f87f5b3c (patch) | |
tree | 91027c33a270679a4c4ee0cb824c79593a0072da | |
parent | f0eabc17d6ec113c6e765ac3272f19623a6cbd4e (diff) | |
download | mupdf-e2a85460370a3110b89fb838bc924c73f87f5b3c.tar.xz |
x11: Fix segfault when creating presentation transitions.
-rw-r--r-- | platform/x11/pdfapp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index c3231995..dae5da9a 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -913,7 +913,7 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int repai colorspace = fz_device_gray(app->ctx); else colorspace = app->colorspace; - app->image = fz_new_pixmap_with_bbox(app->ctx, colorspace, &ibounds, app->image->alpha); + app->image = fz_new_pixmap_with_bbox(app->ctx, colorspace, &ibounds, 1); app->duration = 0; fz_page_presentation(app->ctx, app->page, &app->transition, &app->duration); if (app->duration == 0) |