From 23827c2faf37353b8fb34afafd7271f6fedc7fc0 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Wed, 20 May 2020 15:49:22 +0300 Subject: [PATCH] Issue #3242: Access violation on collinearity Fix shape type validator. --- src/GeomValidators/GeomValidators_ShapeType.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GeomValidators/GeomValidators_ShapeType.cpp b/src/GeomValidators/GeomValidators_ShapeType.cpp index 1db9dd752..4b81b7eec 100644 --- a/src/GeomValidators/GeomValidators_ShapeType.cpp +++ b/src/GeomValidators/GeomValidators_ShapeType.cpp @@ -179,6 +179,8 @@ bool GeomValidators_ShapeType::isValidAttribute(const AttributePtr& theAttribute } } } + else + aValid = false; } else if (anAttributeType == ModelAPI_AttributeReference::typeId()) { AttributeReferencePtr anAttr = -- 2.39.2