From: eap Date: Wed, 18 Apr 2007 07:00:54 +0000 (+0000) Subject: PAL13330 (When mesh generation does not success, trace where) X-Git-Tag: V3_2_6~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ca74cc372750fb15bf46159d52192b426d2f0e19;p=modules%2Fsmesh.git PAL13330 (When mesh generation does not success, trace where) fix error message --- diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx index 0b0d057ed..0d4f3615e 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx @@ -626,7 +626,9 @@ FaceQuadStruct* StdMeshers_Quadrangle_2D::CheckNbEdges(SMESH_Mesh & aMes } cout << endl; #endif - error(COMPERR_BAD_SHAPE, TComm("Face must have 4 side but not ") << nbSides); + if ( !nbSides ) + nbSides = nbEdgesInWire.front(); + error(COMPERR_BAD_SHAPE, TComm("Face must have 4 sides but not ") << nbSides); delete quad; quad = 0; }