From d7d3916c314dc937eabad0530c588c3ebc177762 Mon Sep 17 00:00:00 2001 From: maintenance team Date: Fri, 12 Feb 2010 08:03:53 +0000 Subject: [PATCH] Fix compilation problem on Debian Sarge --- src/StdMeshers/StdMeshers_FaceSide.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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; } //================================================================================ -- 2.39.2