From: Pawel Date: Tue, 17 Jul 2012 12:23:53 +0000 (+0200) Subject: 0023300: ShapeFix_EdgeProjAux.cxx: line 283 - identical sub-expression in 'if-clause' X-Git-Tag: V6_5_4_beta1~130 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=fccb487b5f96f6d19bf75a053271b8462e0c0a46;p=occt-copy.git 0023300: ShapeFix_EdgeProjAux.cxx: line 283 - identical sub-expression in 'if-clause' Verifying also the last parameter in the if-clause. --- diff --git a/src/ShapeFix/ShapeFix_EdgeProjAux.cxx b/src/ShapeFix/ShapeFix_EdgeProjAux.cxx index eb21240347..11dc3831cd 100755 --- a/src/ShapeFix/ShapeFix_EdgeProjAux.cxx +++ b/src/ShapeFix/ShapeFix_EdgeProjAux.cxx @@ -280,7 +280,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci) cf = theCurve2d->FirstParameter(); cl = theCurve2d->LastParameter(); //pdn cutting pcurve by suface bounds - if (Precision::IsInfinite(cf)||Precision::IsInfinite(cf)) { + if (Precision::IsInfinite(cf)||Precision::IsInfinite(cl)) { if(theCurve2d->IsKind(STANDARD_TYPE(Geom2d_Line))) { Standard_Real uf,ul,vf,vl; theSurface->Bounds(uf,ul,vf,vl);