fix(marktree): some marks counted twice when checking for overlap

fixes #27046
This commit is contained in:
bfredl
2024-02-23 11:38:27 +01:00
parent e2e63bd045
commit b97d5038f1
2 changed files with 25 additions and 1 deletions

View File

@@ -1831,7 +1831,7 @@ bool marktree_itr_step_overlap(MarkTree *b, MarkTreeIter *itr, MTPair *pair)
}
unrelative(itr->pos, &k.pos);
MTKey start = marktree_lookup(b, id, NULL);
if (pos_less(itr->intersect_pos, start.pos)) {
if (pos_leq(itr->intersect_pos, start.pos)) {
continue;
}
*pair = mtpair_from(start, k);