]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3242: Access violation on collinearity
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Wed, 20 May 2020 12:49:22 +0000 (15:49 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Wed, 20 May 2020 12:49:22 +0000 (15:49 +0300)
Fix shape type validator.

src/GeomValidators/GeomValidators_ShapeType.cpp

index 1db9dd7526f486f3d778b905a3b04044c52656e9..4b81b7eec129a702b80b7cac89d75e0cc6507b93 100644 (file)
@@ -179,6 +179,8 @@ bool GeomValidators_ShapeType::isValidAttribute(const AttributePtr& theAttribute
         }
       }
     }
+    else
+      aValid = false;
   }
   else if (anAttributeType == ModelAPI_AttributeReference::typeId()) {
     AttributeReferencePtr anAttr =