summaryrefslogtreecommitdiff
path: root/source/fitz/util.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-08-08 13:41:31 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-08-17 13:38:48 +0200
commit7225ddf9df514c6c88ecbe01c708137a324456c7 (patch)
tree9bbe65936eb4a95636bca0cf151975be41712dbc /source/fitz/util.c
parentaf356930857b57d4f0d9a193603d64ab709a8e56 (diff)
downloadmupdf-7225ddf9df514c6c88ecbe01c708137a324456c7.tar.xz
Add FZ_REPLACEMENT_CHARACTER define for U+FFFD character.
Diffstat (limited to 'source/fitz/util.c')
-rw-r--r--source/fitz/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/util.c b/source/fitz/util.c
index d6a7f317..d22c6a7b 100644
--- a/source/fitz/util.c
+++ b/source/fitz/util.c
@@ -432,7 +432,7 @@ fz_new_buffer_from_stext_page(fz_context *ctx, fz_stext_page *page, const fz_rec
int c = ch->c;
fz_stext_char_bbox(ctx, &hitbox, line, ch);
if (c < 32)
- c = 0xFFFD;
+ c = FZ_REPLACEMENT_CHARACTER;
if (hitbox.x1 >= x0 && hitbox.x0 <= x1 && hitbox.y1 >= y0 && hitbox.y0 <= y1)
{
saw_text = 1;