Skip to content

Commit

Permalink
Skip invalid mid in clearMultis
Browse files Browse the repository at this point in the history
Not sure if this is an appropriate fix, but spatialjoin then runs
through without errors and the results look reasonable.
  • Loading branch information
Hannah Bast committed May 9, 2024
1 parent 4630e28 commit 762d9a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/spatialjoin/Sweeper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ void Sweeper::clearMultis(bool force) {

for (auto a = _activeMultis.begin(); a != _activeMultis.end();) {
size_t mid = *a;
if (mid >= _multiIds.size()) {
// TODO: Just skip or erase and skip?
a++;
continue;
}
const std::string& gid = _multiIds[mid];
int32_t rightX = _multiRightX[mid];
if (force || rightX < curMinThreadX) {
Expand Down

0 comments on commit 762d9a3

Please sign in to comment.