mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-12 00:29:18 +05:00
+ removing references to deleted objects.
This commit is contained in:
parent
91ea3e3f9b
commit
8702bf10d3
@ -440,6 +440,8 @@ void GEOMToolsGUI_ReduceStudyDlg::removeObject( std::string& theStudyEntry )
|
|||||||
if ( obj ) {
|
if ( obj ) {
|
||||||
// remove visual properties of the object
|
// remove visual properties of the object
|
||||||
appStudy->removeObjectFromAll(obj->GetID().c_str());
|
appStudy->removeObjectFromAll(obj->GetID().c_str());
|
||||||
|
// remove references to this object
|
||||||
|
appStudy->deleteReferencesTo( obj );
|
||||||
// remove objects from study
|
// remove objects from study
|
||||||
aStudyBuilder->RemoveObjectWithChildren( obj );
|
aStudyBuilder->RemoveObjectWithChildren( obj );
|
||||||
// remove object from use case tree
|
// remove object from use case tree
|
||||||
|
Loading…
Reference in New Issue
Block a user