diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-24 20:53:19 +0800 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-10-24 17:38:58 +0200 |
commit | d81f9236296fe1f456002ec4eb644c4405f3b006 (patch) | |
tree | 0576fff66d0eb126592cb0cb67b45d90309be365 | |
parent | e4714719cf0bb14bee3cef85303526f4913f491f (diff) | |
download | mupdf-d81f9236296fe1f456002ec4eb644c4405f3b006.tar.xz |
Bug 697235: Change default values for stext options.
Previously it was not possible to disable all options, but now this
is the default.
-rw-r--r-- | source/fitz/stext-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |