diff --git a/src/spatialjoin/Sweeper.cpp b/src/spatialjoin/Sweeper.cpp index 1515eb6..1e223e0 100644 --- a/src/spatialjoin/Sweeper.cpp +++ b/src/spatialjoin/Sweeper.cpp @@ -337,7 +337,7 @@ std::pair 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}; } } @@ -368,7 +368,7 @@ std::pair 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}; } } diff --git a/src/util b/src/util index bcbe6d8..40c595c 160000 --- a/src/util +++ b/src/util @@ -1 +1 @@ -Subproject commit bcbe6d8d9e37d8bd67b28d0a8c9d6c8104bc0301 +Subproject commit 40c595cd009a007ff9769479b06c17bda2f1b2d4