From: gka Date: Thu, 11 Oct 2012 13:56:32 +0000 (+0400) Subject: 0023338: The 'then' statement is equivalent to the 'else' statement. IGEStoBRep_TopoS... X-Git-Tag: V6_5_4~28 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=45c0ba3664f1b1b95375849a3b3bf83415230bc0;p=occt.git 0023338: The 'then' statement is equivalent to the 'else' statement. IGEStoBRep_TopoSurface.cxx --- diff --git a/src/IGESToBRep/IGESToBRep_TopoSurface.cxx b/src/IGESToBRep/IGESToBRep_TopoSurface.cxx index 65960e3072..ea324d1acd 100755 --- a/src/IGESToBRep/IGESToBRep_TopoSurface.cxx +++ b/src/IGESToBRep/IGESToBRep_TopoSurface.cxx @@ -1521,12 +1521,8 @@ TopoDS_Shape IGESToBRep_TopoSurface::TransferPlaneParts(const Handle(IGESGeom_Pl gp_Trsf trans; if (crv->IsKind(STANDARD_TYPE(IGESGeom_CurveOnSurface))) { DeclareAndCast(IGESGeom_CurveOnSurface, crv142, crv); - if(st->HasBoundingCurveHole()) { - TopoDS_Shape myshape = TC.TransferCurveOnFace (plane, crv142, trans, TheULength, Standard_False); - } - else { - TopoDS_Shape myshape = TC.TransferCurveOnFace (plane, crv142, trans, TheULength, Standard_False); - } + TopoDS_Shape myshape = TC.TransferCurveOnFace (plane, crv142, trans, TheULength, Standard_False); + //:3 by ABV 5 Nov 97: set plane to be finite if ( first ) { TopExp_Explorer ws ( plane, TopAbs_WIRE );