]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
minor changes
authorsmh <smh@opencascade.com>
Tue, 8 Jun 2004 10:54:12 +0000 (10:54 +0000)
committersmh <smh@opencascade.com>
Tue, 8 Jun 2004 10:54:12 +0000 (10:54 +0000)
src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx

index 64eba6c88b5fb489cfb825d0529b119f7904a5f0..541fabe7d59d563678e6829e09434359daf26a13 100644 (file)
@@ -694,8 +694,8 @@ void SALOMEDS_StudyBuilder_i::RemoveReference(SALOMEDS::SObject_ptr me)
   CORBA::String_var roid = theReferencedObject->GetID();
   TDF_Tool::Label(_doc->GetData(),roid,RefLab);
 
-  RemoveAttribute(theReferencedObject, "AttributeTarget");
-  //if(!CORBA::is_nil(_callbackOnRemove) && Lab.IsDescendant(_doc->Main())) _callbackOnRemove->OnRemoveSObject(me);
+  Handle(SALOMEDS_TargetAttribute) aTarget;
+  if(RefLab.FindAttribute(SALOMEDS_TargetAttribute::GetID(), aTarget)) aTarget->Remove(Lab);
 }