From 49eb7d1c5fc0ece07b3b1c03af6c4912a69e50d3 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 11 Sep 2013 10:34:33 +0000 Subject: [PATCH] again: Avoid SIGSEGV in debug mode if CheckNbEdges() is called w/o calling Compute() --- src/StdMeshers/StdMeshers_Quadrangle_2D.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2