From: Pawel Date: Mon, 16 Jul 2012 10:34:22 +0000 (+0200) Subject: 0023287: IntPolyh_MaillageAffinage.cxx, line 2217: "identical sub-expressions to... X-Git-Tag: V6_5_4_beta1~121 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=0564092bc9c70326e221307db477e9a7d902a639;p=occt-copy.git 0023287: IntPolyh_MaillageAffinage.cxx, line 2217: "identical sub-expressions to the left and to the right of the '-' operator" Changed the redundant curve type Geom(2d)_BSplineCurve to Geom(2d)_BezierCurve. --- diff --git a/src/GeomLib/GeomLib_Tool.cxx b/src/GeomLib/GeomLib_Tool.cxx index 2c232d259d..aa712b9899 100755 --- a/src/GeomLib/GeomLib_Tool.cxx +++ b/src/GeomLib/GeomLib_Tool.cxx @@ -296,7 +296,7 @@ Standard_Boolean GeomLib_Tool::Parameter(const Handle(Geom_Curve)& Curve, } // process parametrical curves else if( KindOfCurve == STANDARD_TYPE (Geom_BSplineCurve) || - KindOfCurve == STANDARD_TYPE (Geom_BSplineCurve) || + KindOfCurve == STANDARD_TYPE (Geom_BezierCurve) || KindOfCurve == STANDARD_TYPE (Geom_TrimmedCurve) || KindOfCurve == STANDARD_TYPE (Geom_OffsetCurve) ) { @@ -546,7 +546,7 @@ Standard_Boolean GeomLib_Tool::Parameter(const Handle(Geom2d_Curve)& Curve, } // process parametrical curves else if( KindOfCurve == STANDARD_TYPE (Geom2d_BSplineCurve) || - KindOfCurve == STANDARD_TYPE (Geom2d_BSplineCurve) || + KindOfCurve == STANDARD_TYPE (Geom2d_BezierCurve) || KindOfCurve == STANDARD_TYPE (Geom2d_TrimmedCurve) || KindOfCurve == STANDARD_TYPE (Geom2d_OffsetCurve) ) {