From: azv Date: Wed, 20 Mar 2019 09:44:45 +0000 (+0300) Subject: Issue #2890: Wrong partition result with planes and SIGSEGV X-Git-Tag: V9_3_0b2~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c16413047e3a765fba8b066ebbc167ac6c26b3d7;p=modules%2Fshaper.git Issue #2890: Wrong partition result with planes and SIGSEGV Check number of points in the result when verifying a wire is a rectangle. --- 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; } //==================================================================================================