Salome HOME
IPAL54384: TC8.5.0: SMESH: Regression delete groups with contents - exception
authoreap <eap@opencascade.com>
Mon, 23 Apr 2018 15:58:06 +0000 (18:58 +0300)
committereap <eap@opencascade.com>
Mon, 23 Apr 2018 15:58:06 +0000 (18:58 +0300)
src/SMDS/SMDS_Mesh.cxx

index 43a48eb37f23095e4f666dd64df2ed7c84a93487..bb3ecb80f37b8dc29965ab9416fb4c5cc062621f 100644 (file)
@@ -1831,6 +1831,7 @@ void SMDS_Mesh::RemoveElement(const SMDS_MeshElement *               elem,
     case SMDSAbs_All: // avoid compilation warning
     case SMDSAbs_NbElementTypes: break;
     }
     case SMDSAbs_All: // avoid compilation warning
     case SMDSAbs_NbElementTypes: break;
     }
+    removedElems.push_back( *it);
 
     myCellFactory->Free( static_cast< const SMDS_MeshCell*>( *it ));
 
 
     myCellFactory->Free( static_cast< const SMDS_MeshCell*>( *it ));