summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-10-24 20:52:50 +0800
committerTor Andersson <tor.andersson@artifex.com>2016-10-24 17:38:58 +0200
commit161b834c1933b9b61719c931dfd819622a588086 (patch)
treeac410f83c4474a68afa2b862e392679058eadd87
parenta76bbd0f0b2f966a04a560cb02ba2d926f0e4adb (diff)
downloadmupdf-161b834c1933b9b61719c931dfd819622a588086.tar.xz
When not preserving stext ligatures, remember actual character added.
Previously, when the ligatures were not preserved, the ligature glyph itself was remembered but not each individual character it expanded to.
-rw-r--r--source/fitz/stext-device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/fitz/stext-device.c b/source/fitz/stext-device.c
index c5073455..5bf7b60b 100644
--- a/source/fitz/stext-device.c
+++ b/source/fitz/stext-device.c
@@ -711,6 +711,7 @@ fz_add_stext_char_imp(fz_context *ctx, fz_stext_device *dev, fz_stext_style *sty
}
no_glyph:
add_char_to_span(ctx, dev->cur_span, c, &p, &q, style);
+ dev->lastchar = c;
}
static void
@@ -844,8 +845,6 @@ fz_stext_extract(fz_context *ctx, fz_stext_device *dev, fz_text_span *span, cons
adv = 0;
fz_add_stext_char(ctx, dev, style, span->items[i].ucs, span->items[i].gid, &trm, adv, span->wmode);
-
- dev->lastchar = span->items[i].ucs;
}
}