+ removing references to deleted objects.

This commit is contained in:
akl 2014-06-24 12:55:33 +04:00
parent 91ea3e3f9b
commit 8702bf10d3

View File

@ -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