From: maintenance team Date: Fri, 12 Feb 2010 08:03:53 +0000 (+0000) Subject: Fix compilation problem on Debian Sarge X-Git-Tag: V5_1_4a1~90 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d7d3916c314dc937eabad0530c588c3ebc177762;p=modules%2Fsmesh.git Fix compilation problem on Debian Sarge --- diff --git a/src/StdMeshers/StdMeshers_FaceSide.cxx b/src/StdMeshers/StdMeshers_FaceSide.cxx index 305c1fc9e..55ff0aa3b 100644 --- a/src/StdMeshers/StdMeshers_FaceSide.cxx +++ b/src/StdMeshers/StdMeshers_FaceSide.cxx @@ -574,12 +574,14 @@ TSideVector StdMeshers_FaceSide::GetFaceWires(const TopoDS_Face& theFace, TopoDS_Vertex StdMeshers_FaceSide::FirstVertex(int i) const { - return (i >= NbEdges()) ? (TopoDS_Vertex()) : - ( - myEdge[i].Orientation() <= TopAbs_REVERSED ? // FORWARD || REVERSED - TopExp::FirstVertex( myEdge[i], 1 ) : - TopoDS::Vertex( TopoDS_Iterator( myEdge[i] ).Value()) - ); + TopoDS_Vertex v; + if ( i < NbEdges() ) + { + v = myEdge[i].Orientation() <= TopAbs_REVERSED ? // FORWARD || REVERSED + TopExp::FirstVertex( myEdge[i], 1 ) : + TopoDS::Vertex( TopoDS_Iterator( myEdge[i] ).Value() ); + } + return v; } //================================================================================