From: ifv Date: Fri, 10 Jul 2015 11:10:14 +0000 (+0300) Subject: 0025048: Wrong return value of GeomLib_Tool::Parameter X-Git-Tag: V6_9_1_beta~62 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=233b69d788931717bab896509aba71b0f786f5b8;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 5779b215c7..97e149e318 100644 --- a/src/GeomLib/GeomLib_Tool.cxx +++ b/src/GeomLib/GeomLib_Tool.cxx @@ -194,6 +194,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; }