ports/converters/k2pdfopt/patches/patch-mupdf_mod_stext-device_c

13 lines
488 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: mupdf_mod/stext-device.c
--- mupdf_mod/stext-device.c.orig
+++ mupdf_mod/stext-device.c
@@ -1097,7 +1097,7 @@ fz_parse_stext_options(fz_context *ctx, fz_stext_optio
fz_device *
fz_new_stext_device(fz_context *ctx, fz_stext_sheet *sheet, fz_stext_page *page, const fz_stext_options *opts)
{
- fz_stext_device *dev = fz_new_device(ctx, sizeof *dev);
+ fz_stext_device *dev = fz_new_derived_device(ctx, fz_stext_device);
dev->super.hints = FZ_IGNORE_IMAGE | FZ_IGNORE_SHADE;