From c16413047e3a765fba8b066ebbc167ac6c26b3d7 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 20 Mar 2019 12:44:45 +0300 Subject: [PATCH] Issue #2890: Wrong partition result with planes and SIGSEGV Check number of points in the result when verifying a wire is a rectangle. --- src/GeomAPI/GeomAPI_Wire.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GeomAPI/GeomAPI_Wire.cpp b/src/GeomAPI/GeomAPI_Wire.cpp index c1124a353..addd4ccb6 100644 --- a/src/GeomAPI/GeomAPI_Wire.cpp +++ b/src/GeomAPI/GeomAPI_Wire.cpp @@ -119,7 +119,7 @@ bool GeomAPI_Wire::isRectangle(std::list& thePoints) const else return false; } - return true; + return thePoints.size() == 4; } //================================================================================================== -- 2.39.2