From 951fc31a6160bef540b79759eab596f38302d288 Mon Sep 17 00:00:00 2001 From: malc Date: Wed, 23 Aug 2017 04:11:22 +0300 Subject: [PATCH] Fix block/page selection --- link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/link.c b/link.c index e208b1b..b973cb1 100644 --- a/link.c +++ b/link.c @@ -2012,11 +2012,11 @@ static void showsel (struct page *page, int ox, int oy) for (block = page->text->first_block; block; block = block->next) { fz_stext_line *line; - rect = fz_empty_rect; if (block->type != FZ_STEXT_BLOCK_TEXT) continue; for (line = block->u.t.first_line; line; line = line->next) { fz_stext_char *ch; + rect = fz_empty_rect; for (ch = line->first_char; ch; ch = ch->next) { if (ch == page->fmark.ch) seen = 1; if (seen) fz_union_rect (&rect, &ch->bbox); -- 2.11.4.GIT