summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-10-24 20:53:19 +0800
committerTor Andersson <tor.andersson@artifex.com>2016-10-24 17:38:58 +0200
commitd81f9236296fe1f456002ec4eb644c4405f3b006 (patch)
tree0576fff66d0eb126592cb0cb67b45d90309be365 /source/fitz
parente4714719cf0bb14bee3cef85303526f4913f491f (diff)
downloadmupdf-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.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/stext-device.c4
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;
}