Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for #767: correct the internal history structure for nested features
[modules/shaper.git]
/
src
/
Model
/
Model_AttributeReference.cpp
diff --git
a/src/Model/Model_AttributeReference.cpp
b/src/Model/Model_AttributeReference.cpp
index 700e2f7d3d387f3e1d902d34a7de0e02692f14a8..beb04549cffe4a51c359d83158e386613ddb07e8 100644
(file)
--- a/
src/Model/Model_AttributeReference.cpp
+++ b/
src/Model/Model_AttributeReference.cpp
@@
-36,8
+36,6
@@
void Model_AttributeReference::setValue(ObjectPtr theObject)
// same document, use reference attribute
if (anObjLab.IsNull() || owner()->document() == theObject->document()) {
// 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 {
if (anObjLab.IsNull()) {
myRef->Set(myRef->Label());
} else {