diff --git a/src/viewer/dump/dump.c b/src/viewer/dump/dump.c index a4a1153d..1adc6fc4 100644 --- a/src/viewer/dump/dump.c +++ b/src/viewer/dump/dump.c @@ -221,6 +221,10 @@ is_start_of_link(struct document *document, int x, int y, int *current_link_numb *ret = link; return 1; } + + if (link->points[0].y > y) { + break; + } } return 0; } @@ -238,6 +242,10 @@ is_end_of_link(struct document *document, int x, int y, int *current_link_number *ret = link; return 1; } + + if (link->points[0].y > y) { + break; + } } return 0; }