1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0023300: ShapeFix_EdgeProjAux.cxx: line 283 - identical sub-expression in 'if-clause'

Verifying also the last parameter in the if-clause.
This commit is contained in:
Pawel 2012-07-17 14:23:53 +02:00 committed by Pawel Kowalski
parent b476213a1d
commit fccb487b5f

View File

@ -280,7 +280,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
cf = theCurve2d->FirstParameter(); cf = theCurve2d->FirstParameter();
cl = theCurve2d->LastParameter(); cl = theCurve2d->LastParameter();
//pdn cutting pcurve by suface bounds //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))) { if(theCurve2d->IsKind(STANDARD_TYPE(Geom2d_Line))) {
Standard_Real uf,ul,vf,vl; Standard_Real uf,ul,vf,vl;
theSurface->Bounds(uf,ul,vf,vl); theSurface->Bounds(uf,ul,vf,vl);