From: srn Date: Mon, 1 Feb 2010 10:35:35 +0000 (+0000) Subject: Fixed method RemoveObjectWithChildren, the children are not put in the modification... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d1e51c6551107b8dbb8cc538d9eb356e5fe94b6c;p=modules%2Fkernel.git Fixed method RemoveObjectWithChildren, the children are not put in the modification delta --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_StudyBuilder.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_StudyBuilder.cxx index 1694348db..b84f22345 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_StudyBuilder.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_StudyBuilder.cxx @@ -254,9 +254,6 @@ bool SALOMEDSImpl_StudyBuilder::RemoveObjectWithChildren(const SALOMEDSImpl_SObj for(;it.More();it.Next()) { DF_Label aLabel = it.Value(); - SALOMEDSImpl_SObject so(aLabel); - so.OnRemove(); - if ((aReference=(SALOMEDSImpl_AttributeReference*)aLabel.FindAttribute(SALOMEDSImpl_AttributeReference::GetID()))) { SALOMEDSImpl_AttributeTarget* aTarget = NULL; if ((aTarget=(SALOMEDSImpl_AttributeTarget*)aReference->Get().FindAttribute(SALOMEDSImpl_AttributeTarget::GetID())))