]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Corrected for bug NPAL16567.
authorskl <skl@opencascade.com>
Fri, 3 Aug 2007 07:40:38 +0000 (07:40 +0000)
committerskl <skl@opencascade.com>
Fri, 3 Aug 2007 07:40:38 +0000 (07:40 +0000)
src/StdMeshers/StdMeshers_Quadrangle_2D.cxx

index c880c9ce16707d8da51f351f9f775fa7b44bd3d3..2c3c741286e41e01d8b0b1016213a8fb3a8fd6c1 100644 (file)
@@ -239,6 +239,9 @@ bool StdMeshers_Quadrangle_2D::Compute (SMESH_Mesh& aMesh,
   const vector<UVPtStruct>& uv_e2 = quad->side[2]->GetUVPtStruct(true,1 );
   const vector<UVPtStruct>& uv_e3 = quad->side[3]->GetUVPtStruct(false,0);
 
+  if ( uv_e0.empty() || uv_e1.empty() || uv_e2.empty() || uv_e3.empty() )
+    return error( COMPERR_BAD_INPUT_MESH );
+
   double eps = Precision::Confusion();
 
   // Boundary quadrangles