From: ifv Date: Fri, 10 Jul 2015 11:10:14 +0000 (+0300) Subject: 0025048: Wrong return value of GeomLib_Tool::Parameter X-Git-Tag: V7_0_0_beta~435 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=3eb3fdd8e62353fbc107c42cde25cf4aa7ceac20;p=occt-copy.git 0025048: Wrong return value of GeomLib_Tool::Parameter --- diff --git a/src/GeomLib/GeomLib_Tool.cxx b/src/GeomLib/GeomLib_Tool.cxx index 2049a723bf..daa44083f3 100644 --- a/src/GeomLib/GeomLib_Tool.cxx +++ b/src/GeomLib/GeomLib_Tool.cxx @@ -190,6 +190,7 @@ Standard_Boolean GeomLib_Tool::Parameter(const Handle(Geom_Curve)& Curve, } } if( iMin != 0 && Dist2Min <= aTol ) U = (extrema.Point(iMin)).Parameter(); + else return Standard_False; } else { return Standard_False; }