summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/tests/mu-office-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/tests/mu-office-test.c b/source/tests/mu-office-test.c
index d729de88..796588bd 100644
--- a/source/tests/mu-office-test.c
+++ b/source/tests/mu-office-test.c
@@ -267,10 +267,10 @@ save_png(const MuOfficeBitmap *bitmap, const char *filename)
exit(EXIT_FAILURE);
}
+ pix = fz_new_pixmap_with_data(ctx, fz_device_rgb(ctx), bitmap->width, bitmap->height, NULL, 1, bitmap->lineSkip, bitmap->memptr);
+
fz_try(ctx)
{
- pix = fz_new_pixmap_with_data(ctx, fz_device_rgb(ctx), bitmap->width, bitmap->height, NULL, 1, bitmap->lineSkip, bitmap->memptr);
-
fz_save_pixmap_as_png(ctx, pix, filename);
}
fz_always(ctx)