X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeRefAttrList.cpp;h=94b301921473300427d5ca36df0e908f74aa61b3;hb=8f2e8789faa06405e900ee2272858a8ca898ba32;hp=e08420a01031ef746cc3ed7e546d4c9d502ab742;hpb=83c4f9d21db70830d40da2a6d7d7ff66a697edf8;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeRefAttrList.cpp b/src/Model/Model_AttributeRefAttrList.cpp index e08420a01..94b301921 100755 --- a/src/Model/Model_AttributeRefAttrList.cpp +++ b/src/Model/Model_AttributeRefAttrList.cpp @@ -95,7 +95,7 @@ void Model_AttributeRefAttrList::remove(AttributePtr theAttr) (aTheObjLab.IsNull() && aDoc->objects()->object(aRefIter.Value()) != NULL)) { myRef->Append(aRefIter.Value()); myIDs->Append(anIDIter.Value()); - } else if (aTheObjLab.IsNull() && aDoc->objects()->object(aRefIter.Value()) != NULL) { + } else { aOneisDeleted = true; } } @@ -293,7 +293,6 @@ void Model_AttributeRefAttrList::remove(const std::set& theIndices) aOneisDeleted = true; ObjectPtr anObj = aDoc->objects()->object(aRefIter.Value()); if (anObj.get()) { - myRef->Remove(aRefIter.Value()); REMOVE_BACK_REF(anObj); } }