From e9eea4cf1bb47e2eb57a31368cd7ed7a93f21513 Mon Sep 17 00:00:00 2001 From: angusj Date: Tue, 21 Mar 2023 09:46:03 +1000 Subject: [PATCH] Fixed bug in MaxInvalidRectD (C++) (#451) --- CPP/Clipper2Lib/include/clipper2/clipper.core.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CPP/Clipper2Lib/include/clipper2/clipper.core.h b/CPP/Clipper2Lib/include/clipper2/clipper.core.h index a8d593f2..9601447f 100644 --- a/CPP/Clipper2Lib/include/clipper2/clipper.core.h +++ b/CPP/Clipper2Lib/include/clipper2/clipper.core.h @@ -57,7 +57,6 @@ namespace Clipper2Lib const double min_coord = static_cast(MIN_COORD); static const double MAX_DBL = (std::numeric_limits::max)(); - static const double MIN_DBL = (std::numeric_limits::min)(); static void DoError(int error_code) { @@ -340,7 +339,7 @@ namespace Clipper2Lib INT64_MAX, INT64_MAX, INT64_MIN, INT64_MIN); static const RectD MaxInvalidRectD = RectD( - MAX_DBL, MAX_DBL, MIN_DBL, MIN_DBL); + MAX_DBL, MAX_DBL, -MAX_DBL, -MAX_DBL); inline Rect64 GetBounds(const Path64& path) {