X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FModel_AttributeRefAttrList.cpp;fp=src%2FModel%2FModel_AttributeRefAttrList.cpp;h=2b56f8b787140691d5803cca66d45db65f4e304d;hb=85afcf29664dfb5bda0bc6239c8760d6e424b1f2;hp=e1ffa3b62ea2987ee3f9949d06dde7c99c476613;hpb=0bada2df7b7948c756effe42fe860cc1b93b77af;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeRefAttrList.cpp b/src/Model/Model_AttributeRefAttrList.cpp index e1ffa3b62..2b56f8b78 100755 --- a/src/Model/Model_AttributeRefAttrList.cpp +++ b/src/Model/Model_AttributeRefAttrList.cpp @@ -90,7 +90,8 @@ void Model_AttributeRefAttrList::remove(AttributePtr theAttr) TDF_ListIteratorOfLabelList aRefIter(aRefList); TDataStd_ListIteratorOfListOfExtendedString anIDIter(anIDList); for (; aRefIter.More(); aRefIter.Next(), anIDIter.Next()) { - if (aOneisDeleted || anIDIter.Value() != theAttr->id().c_str() || // append now only not removed + if (aOneisDeleted || anIDIter.Value() != theAttr->id().c_str() || + // append now only not removed aRefIter.Value() != aTheObjLab || // append now only not removed (aTheObjLab.IsNull() && aDoc->objects()->object(aRefIter.Value()) != NULL)) { myRef->Append(aRefIter.Value());