]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix compilation problem on Debian Sarge
authormaintenance team <salome-mnt@opencascade.com>
Fri, 12 Feb 2010 08:03:53 +0000 (08:03 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Fri, 12 Feb 2010 08:03:53 +0000 (08:03 +0000)
src/StdMeshers/StdMeshers_FaceSide.cxx

index 305c1fc9e9c980f965cca62924f6fb87341b64a4..55ff0aa3b8278e8fa8b8ebe134e94440a2bb94e8 100644 (file)
@@ -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;
 }
 
 //================================================================================