From: Pawel Date: Tue, 17 Jul 2012 14:58:53 +0000 (+0200) Subject: 0023311: Duplicated check in if-clause in ChFi2d_Builder_0.cxx X-Git-Tag: V6_5_4_beta1~128 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=606a112a125fcd683e0c2e112b8aa1309fb5ea76;p=occt-copy.git 0023311: Duplicated check in if-clause in ChFi2d_Builder_0.cxx Verifying that the second provided edge is neither a line nor a circle. --- diff --git a/src/ChFi2d/ChFi2d_Builder_0.cxx b/src/ChFi2d/ChFi2d_Builder_0.cxx index a90e9b861d..9b1440acb9 100755 --- a/src/ChFi2d/ChFi2d_Builder_0.cxx +++ b/src/ChFi2d/ChFi2d_Builder_0.cxx @@ -172,7 +172,7 @@ TopoDS_Edge ChFi2d_Builder::AddChamfer(const TopoDS_Edge& E, } // if (IsAChamfer ... if (!IsLineOrCircle(adjEdge1,newFace) - || !IsLineOrCircle(adjEdge1,newFace) ) { + || !IsLineOrCircle(adjEdge2,newFace) ) { status = ChFi2d_NotAuthorized; return aChamfer; } // if (!IsLineOrCircle ...