From 8702bf10d306a5716659ceca4b4d817e7de7508e Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 24 Jun 2014 12:55:33 +0400 Subject: [PATCH] + removing references to deleted objects. --- src/GEOMToolsGUI/GEOMToolsGUI_ReduceStudyDlg.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GEOMToolsGUI/GEOMToolsGUI_ReduceStudyDlg.cxx b/src/GEOMToolsGUI/GEOMToolsGUI_ReduceStudyDlg.cxx index 4c4a39e9e..4bd464a78 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI_ReduceStudyDlg.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI_ReduceStudyDlg.cxx @@ -440,6 +440,8 @@ void GEOMToolsGUI_ReduceStudyDlg::removeObject( std::string& theStudyEntry ) if ( obj ) { // remove visual properties of the object appStudy->removeObjectFromAll(obj->GetID().c_str()); + // remove references to this object + appStudy->deleteReferencesTo( obj ); // remove objects from study aStudyBuilder->RemoveObjectWithChildren( obj ); // remove object from use case tree