Salome HOME
#19993 [CEA 17873] Delete group with contents crash
[modules/smesh.git] / src / SMESH_I / SMESH_Mesh_i.cxx
index 97687ae79842fa0fb4ea98b578c01cf73b674be1..fd26d1cf02351757deecbb6165f93bb6cf198849 100644 (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 << " )";