1
0
Fork 0

[dump] Small optimisation. Refs #198

This commit is contained in:
Witold Filipczyk 2022-11-27 19:51:59 +01:00
parent 8ac424f01b
commit 8e619e4d02
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}