Skip to content

Commit

Permalink
fix typo in box id checks for area/area and line/area
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Apr 4, 2024
1 parent 0eed85e commit adc121f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/spatialjoin/Sweeper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ std::pair<bool, bool> Sweeper::check(const Area* a, const Area* b,
// at least one box is fully contained, so we intersect
// but the number of fully and partially contained boxed is smaller
// than the number of boxes of A, so we cannot possible by contained
if (r.first + r.second < a->boxIds.front().first && r.second > 0) {
if (r.first + r.second < a->boxIds.front().first && r.first > 0) {
return {1, 0};
}
}
Expand Down Expand Up @@ -368,7 +368,7 @@ std::pair<bool, bool> Sweeper::check(const Line* a, const Area* b,
// at least one box is fully contained, so we intersect
// but the number of fully and partially contained boxed is smaller
// than the number of boxes of A, so we cannot possible by contained
if (r.first + r.second < a->boxIds.front().first && r.second > 0) {
if (r.first + r.second < a->boxIds.front().first && r.first > 0) {
return {1, 0};
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/util
Submodule util updated 1 files
+19 −0 tests/TestMain.cpp

0 comments on commit adc121f

Please sign in to comment.