From b5a5605be48d3c73f12421d9003e296c5759a8b8 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 12 Oct 2017 16:01:07 +0300 Subject: [PATCH] 23489: EDF 15587 - Problem with repositioning of nodes --- src/FrontTrack/FrontTrack_Projector.cxx | 4 ++-- src/FrontTrack/FrontTrack_Utils.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FrontTrack/FrontTrack_Projector.cxx b/src/FrontTrack/FrontTrack_Projector.cxx index ce24d4b0..5a76d6cf 100755 --- a/src/FrontTrack/FrontTrack_Projector.cxx +++ b/src/FrontTrack/FrontTrack_Projector.cxx @@ -106,7 +106,7 @@ namespace // actual projection algorithms { gp_Pnt proj; Standard_Real param; - + if ( prevSolution ) { _dist = _projector.NextProject( prevSolution[0], _curve, P, _tol, proj, param ); @@ -114,8 +114,8 @@ namespace // actual projection algorithms else { _dist = _projector.Project( _curve, P, _tol, proj, param, false ); - proj = _curve.Value( param ); } + proj = _curve.Value( param ); newSolution[0] = param; diff --git a/src/FrontTrack/FrontTrack_Utils.cxx b/src/FrontTrack/FrontTrack_Utils.cxx index 129d4f37..53aef37a 100755 --- a/src/FrontTrack/FrontTrack_Utils.cxx +++ b/src/FrontTrack/FrontTrack_Utils.cxx @@ -138,7 +138,7 @@ int FT_Utils::XaoGroups::getProjectors( const std::string& gro // IDs in XAO correspond to indices of allProjectors std::set::iterator id = groups[i]->begin(), end = groups[i]->end(); for ( ; id != end; ++id, ++nbFound ) - if ( *id < allProjectors.size() ) + if ( *id < (int) allProjectors.size() ) groupProjectors.push_back ( & allProjectors[ *id ]); } -- 2.39.2