Salome HOME
2.17. Improved management of overconstraint situation: Processing added arguments...
[modules/shaper.git] / src / GeomValidators / GeomValidators_Tools.cpp
index 898296961797985cb3289a1a3bb066020a559a0b..ef49c197d24bd69d48ae8108bb351b6c4509252e 100644 (file)
@@ -10,6 +10,8 @@
 #include "ModelAPI_AttributeSelection.h"
 #include "ModelAPI_AttributeReference.h"
 
+#include <TopoDS_Iterator.hxx>
+
 namespace GeomValidators_Tools {
 
   ObjectPtr getObject(const AttributePtr& theAttribute)
@@ -23,14 +25,15 @@ namespace GeomValidators_Tools {
     }
     if (anAttrType == ModelAPI_AttributeSelection::typeId()) {
       AttributeSelectionPtr anAttr = std::dynamic_pointer_cast<ModelAPI_AttributeSelection>(theAttribute);
-      if (anAttr != NULL && anAttr->isInitialized())
+      if (anAttr != NULL)
         anObject = anAttr->context();
     }
     if (anAttrType == ModelAPI_AttributeReference::typeId()) {
       AttributeReferencePtr anAttr = std::dynamic_pointer_cast<ModelAPI_AttributeReference>(theAttribute);
-      if (anAttr.get() != NULL && anAttr->isInitialized())
+      if (anAttr.get() != NULL)
         anObject = anAttr->value();
     }
     return anObject;
   }
+
 }