From: eap Date: Wed, 11 Sep 2013 10:34:33 +0000 (+0000) Subject: again: Avoid SIGSEGV in debug mode if CheckNbEdges() is called w/o calling Compute() X-Git-Tag: V7_3_0a1~162 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=49eb7d1c5fc0ece07b3b1c03af6c4912a69e50d3;p=modules%2Fsmesh.git again: Avoid SIGSEGV in debug mode if CheckNbEdges() is called w/o calling Compute() --- diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx index 4f595074f..acb1189e4 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx @@ -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