Salome HOME
Fix for #767: correct the internal history structure for nested features
[modules/shaper.git] / src / Model / Model_AttributeReference.cpp
index 700e2f7d3d387f3e1d902d34a7de0e02692f14a8..beb04549cffe4a51c359d83158e386613ddb07e8 100644 (file)
@@ -36,8 +36,6 @@ void Model_AttributeReference::setValue(ObjectPtr theObject)
     // same document, use reference attribute
     if (anObjLab.IsNull() || owner()->document() == theObject->document()) {
 
-      std::shared_ptr<Model_Document> aDoc =
-        std::dynamic_pointer_cast<Model_Document>(owner()->document());
       if (anObjLab.IsNull()) {
         myRef->Set(myRef->Label());
       } else {