From 7cf2121b8ed9c8a40d500ed3699b6fc12a896c96 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sun, 3 Dec 2023 09:37:27 -0600 Subject: [PATCH] Fix two point area test --- scwx-qt/source/scwx/qt/util/geographic_lib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scwx-qt/source/scwx/qt/util/geographic_lib.cpp b/scwx-qt/source/scwx/qt/util/geographic_lib.cpp index 1736f6a2..8582d21c 100644 --- a/scwx-qt/source/scwx/qt/util/geographic_lib.cpp +++ b/scwx-qt/source/scwx/qt/util/geographic_lib.cpp @@ -30,7 +30,7 @@ bool AreaContainsPoint(const std::vector& area, const common::Coordinate& point) { // Cannot have an area with just two points - if (area.size() <= 2 || area.size() == 3 && area.front() == area.back()) + if (area.size() <= 2 || (area.size() == 3 && area.front() == area.back())) { return false; }