diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-08-08 13:41:31 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-08-17 13:38:48 +0200 |
commit | 7225ddf9df514c6c88ecbe01c708137a324456c7 (patch) | |
tree | 9bbe65936eb4a95636bca0cf151975be41712dbc /source/fitz/stext-search.c | |
parent | af356930857b57d4f0d9a193603d64ab709a8e56 (diff) | |
download | mupdf-7225ddf9df514c6c88ecbe01c708137a324456c7.tar.xz |
Add FZ_REPLACEMENT_CHARACTER define for U+FFFD character.
Diffstat (limited to 'source/fitz/stext-search.c')
-rw-r--r-- | source/fitz/stext-search.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/stext-search.c b/source/fitz/stext-search.c index 6c30ea29..79071684 100644 --- a/source/fitz/stext-search.c +++ b/source/fitz/stext-search.c @@ -253,7 +253,7 @@ fz_copy_selection(fz_context *ctx, fz_stext_page *page, fz_rect rect) fz_stext_char_bbox(ctx, &hitbox, line, ch); c = ch->c; if (c < 32) - c = 0xFFFD; + c = FZ_REPLACEMENT_CHARACTER; if (hitbox.x1 >= x0 && hitbox.x0 <= x1 && hitbox.y1 >= y0 && hitbox.y0 <= y1) { fz_append_rune(ctx, buffer, c); |