From f3d994a8c1448c76dca6c47a0ad8405a4d00730a Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 26 Aug 2005 06:14:56 +0000 Subject: [PATCH] PAL9636 --- src/VISUGUI/VisuGUI_Tools.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.2