mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
again: Avoid SIGSEGV in debug mode if CheckNbEdges() is called w/o calling Compute()
This commit is contained in:
parent
03ec1eff31
commit
49eb7d1c5f
@ -961,13 +961,13 @@ FaceQuadStruct::Ptr StdMeshers_Quadrangle_2D::CheckNbEdges(SMESH_Mesh &
|
||||
}
|
||||
}
|
||||
}
|
||||
if (nbSides != 4 && myHelper) {
|
||||
if (nbSides != 4 ) {
|
||||
#ifdef _DEBUG_
|
||||
MESSAGE ("StdMeshers_Quadrangle_2D. Edge IDs of " << nbSides << " sides:\n");
|
||||
for (int i = 0; i < nbSides; ++i) {
|
||||
MESSAGE (" (");
|
||||
for (int e = 0; e < quad->side[i]->NbEdges(); ++e)
|
||||
MESSAGE (myHelper->GetMeshDS()->ShapeToIndex(quad->side[i]->Edge(e)) << " ");
|
||||
MESSAGE (aMesh.GetMeshDS()->ShapeToIndex(quad->side[i]->Edge(e)) << " ");
|
||||
MESSAGE (")\n");
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user