From d81f9236296fe1f456002ec4eb644c4405f3b006 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 24 Oct 2016 20:53:19 +0800 Subject: Bug 697235: Change default values for stext options. Previously it was not possible to disable all options, but now this is the default. --- source/fitz/stext-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/fitz') diff --git a/source/fitz/stext-device.c b/source/fitz/stext-device.c index eda71237..d71bce65 100644 --- a/source/fitz/stext-device.c +++ b/source/fitz/stext-device.c @@ -1072,7 +1072,7 @@ fz_new_stext_device(fz_context *ctx, fz_stext_sheet *sheet, fz_stext_page *page, { fz_stext_device *dev = fz_new_device(ctx, sizeof *dev); - dev->super.hints = FZ_IGNORE_IMAGE | FZ_IGNORE_SHADE | FZ_STEXT_PRESERVE_LIGATURES | FZ_STEXT_PRESERVE_WHITESPACE; + dev->super.hints = FZ_IGNORE_IMAGE | FZ_IGNORE_SHADE; dev->super.close_device = fz_stext_close_device; dev->super.drop_device = fz_stext_drop_device; @@ -1090,7 +1090,7 @@ fz_new_stext_device(fz_context *ctx, fz_stext_sheet *sheet, fz_stext_page *page, dev->spans = NULL; dev->cur_span = NULL; dev->lastchar = ' '; - dev->options = options ? options : FZ_STEXT_PRESERVE_LIGATURES | FZ_STEXT_PRESERVE_WHITESPACE; + dev->options = options; return (fz_device*)dev; } -- cgit v1.2.3