mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-01 14:50:34 +05:00
0021480: EDF 2084 SMESH: SIGSEGV when validating Netgen3D hypothesis
In RemoveMesh(), do not erase an iterator pointing to map.end()
This commit is contained in:
parent
fe663d61f6
commit
6a0dd162a9
@ -86,8 +86,7 @@ SMESHDS_Mesh *SMESHDS_Document::GetMesh(int MeshID)
|
||||
void SMESHDS_Document::RemoveMesh(int MeshID)
|
||||
{
|
||||
map<int,SMESHDS_Mesh*>::iterator it=myMeshes.find(MeshID);
|
||||
if (it==myMeshes.end())
|
||||
MESSAGE("SMESHDS_Document::RemoveMesh : ID not found");
|
||||
if (it!=myMeshes.end())
|
||||
myMeshes.erase(it);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user