summaryrefslogtreecommitdiff
path: root/source/fitz/util.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-08-21 16:10:41 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-08-21 17:20:10 +0200
commit5947bedcbf684907b003b7088a59f091ca04326a (patch)
tree19621595dcf5539a414f8a31b7842a6924608c94 /source/fitz/util.c
parente552f404a7c521bbfe32fb1be1d44ad0ba92c014 (diff)
downloadmupdf-5947bedcbf684907b003b7088a59f091ca04326a.tar.xz
Remove redundant fz_stext_char_bbox function.
Diffstat (limited to 'source/fitz/util.c')
-rw-r--r--source/fitz/util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/fitz/util.c b/source/fitz/util.c
index d22c6a7b..5d75aaad 100644
--- a/source/fitz/util.c
+++ b/source/fitz/util.c
@@ -394,7 +394,6 @@ fz_buffer *
fz_new_buffer_from_stext_page(fz_context *ctx, fz_stext_page *page, const fz_rect *sel, int crlf)
{
fz_buffer *buf;
- fz_rect hitbox;
float x0, y0, x1, y1;
fz_stext_block *block;
fz_stext_line *line;
@@ -430,10 +429,9 @@ fz_new_buffer_from_stext_page(fz_context *ctx, fz_stext_page *page, const fz_rec
for (ch = line->first_char; ch; ch = ch->next)
{
int c = ch->c;
- fz_stext_char_bbox(ctx, &hitbox, line, ch);
if (c < 32)
c = FZ_REPLACEMENT_CHARACTER;
- if (hitbox.x1 >= x0 && hitbox.x0 <= x1 && hitbox.y1 >= y0 && hitbox.y0 <= y1)
+ if (ch->bbox.x1 >= x0 && ch->bbox.x0 <= x1 && ch->bbox.y1 >= y0 && ch->bbox.y0 <= y1)
{
saw_text = 1;
if (need_newline)