]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Avoid SIGSEGV in debug mode if CheckNbEdges() is called w/o calling Compute()
authoreap <eap@opencascade.com>
Tue, 10 Sep 2013 14:28:13 +0000 (14:28 +0000)
committereap <eap@opencascade.com>
Tue, 10 Sep 2013 14:28:13 +0000 (14:28 +0000)
src/StdMeshers/StdMeshers_Quadrangle_2D.cxx

index de0523143bd3ebe30604009bf7d70f669d16bf2f..4f595074f12e23650344a7b2d215b1ff3c3de68f 100644 (file)
@@ -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) {