#19993 [CEA 17873] Delete group with contents crash

This commit is contained in:
eap 2020-09-28 14:18:24 +03:00
parent ea6d39162c
commit 222d596e3b

View File

@ -1212,6 +1212,9 @@ void SMESH_Mesh_i::RemoveGroupWithContents( SMESH::SMESH_GroupBase_ptr theGroup
if ( n->NbInverseElements() == 0 )
_impl->GetMeshDS()->RemoveFreeNode( n, /*sm=*/0 );
_impl->GetMeshDS()->Modified();
_impl->SetIsModified( true );
// Update Python script (theGroup must be alive for this)
pyDump << SMESH::SMESH_Mesh_var(_this())
<< ".RemoveGroupWithContents( " << theGroup << " )";