Skip to content

Commit

Permalink
[dump] Small optimisation. Refs #198
Browse files Browse the repository at this point in the history
  • Loading branch information
rkd77 committed Nov 27, 2022
1 parent 8ac424f commit 8e619e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/viewer/dump/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 8e619e4

Please sign in to comment.