Salome HOME
Conditional jump or move depends on uninitialised value
authoreap <eap@opencascade.com>
Wed, 22 Dec 2021 15:45:56 +0000 (18:45 +0300)
committereap <eap@opencascade.com>
Wed, 22 Dec 2021 15:45:56 +0000 (18:45 +0300)
src/FrontTrack/FrontTrack_Projector.cxx

index 62b883cb2d8d2d441ccf7368d226ad95ab5c26ab..614069c860e41edea5c9798b8cba76eed5dfd5a7 100644 (file)
@@ -463,6 +463,7 @@ namespace // actual projection algorithms
                                   newSolution[0], newSolution[1]);
       projection = ElSLib::CylinderValue( newSolution[0], newSolution[1],
                                           _cylinder.Position(), _cylinder.Radius() );
+      _dist = point.Distance( projection );
 
       return ( _dist * _dist < maxDist2 )  &&  SurfaceProjector::classify( newSolution );
     }