]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
+ removing references to deleted objects.
authorakl <alexander.kovalev@opencascade.com>
Tue, 24 Jun 2014 08:55:33 +0000 (12:55 +0400)
committerakl <alexander.kovalev@opencascade.com>
Tue, 24 Jun 2014 08:55:33 +0000 (12:55 +0400)
src/GEOMToolsGUI/GEOMToolsGUI_ReduceStudyDlg.cxx

index 4c4a39e9ee4b8a913591c610f26b29055104c743..4bd464a78dac41e4e8b2d45def5de9a2eb6f7d0f 100644 (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