]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_AttributeRefList.cpp
Salome HOME
Update constraint Mirror.
[modules/shaper.git] / src / Model / Model_AttributeRefList.cpp
index c09190f3326da11cd0057ac0236d4397780762c9..13233fb9c4e0128becbf03d324014051ceb4539e 100644 (file)
@@ -29,6 +29,7 @@ void Model_AttributeRefList::remove(ObjectPtr theObject)
   if (theObject.get() != NULL) {
     aData = std::dynamic_pointer_cast<Model_Data>(theObject->data());
     myRef->Remove(aData->label().Father());
+    REMOVE_BACK_REF(theObject);
   }
   else { // in case of empty object remove, the first empty object is removed from the list
     std::shared_ptr<Model_Document> aDoc = std::dynamic_pointer_cast<Model_Document>(