From: asl Date: Fri, 26 Aug 2005 06:14:56 +0000 (+0000) Subject: PAL9636 X-Git-Tag: T_3_0_2a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f3d994a8c1448c76dca6c47a0ad8405a4d00730a;p=modules%2Fvisu.git PAL9636 --- diff --git a/src/VISUGUI/VisuGUI_Tools.cxx b/src/VISUGUI/VisuGUI_Tools.cxx index a4f91d61..24659007 100644 --- a/src/VISUGUI/VisuGUI_Tools.cxx +++ b/src/VISUGUI/VisuGUI_Tools.cxx @@ -391,9 +391,13 @@ namespace VISU _PTR(Study) theStudy, _PTR(SObject) theSObject) { + SalomeApp_Study* study = GetAppStudy( theModule ); + study->deleteReferencesTo( theSObject ); + _PTR(ChildIterator) aChildIter = theStudy->NewChildIterator(theSObject); for (aChildIter->InitEx(true); aChildIter->More(); aChildIter->Next()) { _PTR(SObject) aChildSObject = aChildIter->Value(); + study->deleteReferencesTo( aChildSObject ); CORBA::Object_var aChildObj = VISU::ClientSObjectToObject(aChildSObject); ErasePrs(theModule, aChildObj); } @@ -408,6 +412,7 @@ namespace VISU } } else { // Remove aSObject together with all its sub-objects + VISU::RemoveFromStudy(theSObject, false, // remove not only IOR attribute, but Object With Children false); // not Destroy() sub-objects