summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/stext-search.c2
-rw-r--r--source/fitz/util.c2
2 files changed, 2 insertions, 2 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);
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;