]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_Tools.cpp
Salome HOME
Issue #3172: Valid partition is invalid after save/open saved document
[modules/shaper.git] / src / ModuleBase / ModuleBase_Tools.cpp
index bae232f486e72a37e9ea4b87b7f53d1e63f12935..0132131b91fe6662e393d44157116cd73b859b56 100644 (file)
@@ -627,8 +627,7 @@ bool hasObject(const AttributePtr& theAttribute, const ObjectPtr& theObject,
   if (aType == ModelAPI_AttributeSelectionList::typeId()) {
     AttributeSelectionListPtr aSelectionListAttr =
                          std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>(theAttribute);
-    ResultPtr aResult = std::dynamic_pointer_cast<ModelAPI_Result>(theObject);
-    aHasObject = aSelectionListAttr->isInList(aResult, theShape, theTemporarily);
+    aHasObject = aSelectionListAttr->isInList(theObject, theShape, theTemporarily);
   }
   else if (aType == ModelAPI_AttributeRefList::typeId()) {
     AttributeRefListPtr aRefListAttr =