From 0a028bb1d7fac85cc075d648143fb007e2a21bac Mon Sep 17 00:00:00 2001 From: Max Gabrielsson Date: Mon, 6 May 2024 17:50:28 +0200 Subject: [PATCH] fix typo --- spatial/include/spatial/core/geometry/geometry.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spatial/include/spatial/core/geometry/geometry.hpp b/spatial/include/spatial/core/geometry/geometry.hpp index 288dce9a..efc60928 100644 --- a/spatial/include/spatial/core/geometry/geometry.hpp +++ b/spatial/include/spatial/core/geometry/geometry.hpp @@ -797,7 +797,7 @@ inline Geometry Polygon::CreateFromBox(ArenaAllocator &alloc, double minx, doubl auto &ring = Polygon::Part(polygon, 0); LineString::Resize(ring, alloc, 5); LineString::SetVertex(ring, 0, {minx, miny}); - LineString::SetVertex(ring, 1, {miny, maxy}); + LineString::SetVertex(ring, 1, {minx, maxy}); LineString::SetVertex(ring, 2, {maxx, maxy}); LineString::SetVertex(ring, 3, {maxx, miny}); LineString::SetVertex(ring, 4, {minx, miny});