From 03ec1eff3194bb0f273bac9ee3c70ac59df9d868 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 10 Sep 2013 14:28:13 +0000 Subject: [PATCH] Avoid SIGSEGV in debug mode if CheckNbEdges() is called w/o calling Compute() --- src/StdMeshers/StdMeshers_Quadrangle_2D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx index de0523143..4f595074f 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx @@ -961,7 +961,7 @@ FaceQuadStruct::Ptr StdMeshers_Quadrangle_2D::CheckNbEdges(SMESH_Mesh & } } } - if (nbSides != 4) { + if (nbSides != 4 && myHelper) { #ifdef _DEBUG_ MESSAGE ("StdMeshers_Quadrangle_2D. Edge IDs of " << nbSides << " sides:\n"); for (int i = 0; i < nbSides; ++i) { -- 2.39.2