again: Avoid SIGSEGV in debug mode if CheckNbEdges() is called w/o calling Compute()

This commit is contained in:
eap 2013-09-11 10:34:33 +00:00
parent 03ec1eff31
commit 49eb7d1c5f

View File

@ -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