From a11b533cd3d74671e31381f8fab559f5d6b046be Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 24 Mar 2006 10:29:08 +0000 Subject: [PATCH] PAL10439 - invalid references must be deleted in VISU --- src/VISUGUI/VisuGUI.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index a03b12e8..0ac4663d 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -437,11 +437,18 @@ CreateCurves( SalomeApp_Module* theModule, _PTR(ChildIterator) aIter = aStudy->NewChildIterator(aSObject); for (; aIter->More(); aIter->Next()) { _PTR(SObject) aTblObj = aIter->Value(); - if ( aTblObj ) { + if( aTblObj ) { _PTR(GenericAttribute) anAttr; if (aTblObj->FindAttribute( anAttr, "AttributeName" ) ) { + + _PTR(ChildIterator) aChildIter = aStudy->NewChildIterator( aTblObj ); + SalomeApp_Study* salome_study = GetAppStudy( theModule ); + for( aChildIter->InitEx( false ); aChildIter->More(); aChildIter->Next() ) + salome_study->deleteReferencesTo( aChildIter->Value() ); + aBuilder->RemoveObjectWithChildren( aTblObj ); // We should have only one child - UpdateObjBrowser(theModule,true,aTblObj); + + //UpdateObjBrowser(theModule,true,aTblObj); break; } } -- 2.39.2