Salome HOME
23489: EDF 15587 - Problem with repositioning of nodes V8_4_BR V8_4_0 V8_4_0rc1 V8_4_0rc2 V8_4_0rc3 V8_4_0rc4
authoreap <eap@opencascade.com>
Thu, 12 Oct 2017 13:01:07 +0000 (16:01 +0300)
committervsr <vsr@opencascade.com>
Thu, 12 Oct 2017 13:19:39 +0000 (16:19 +0300)
src/FrontTrack/FrontTrack_Projector.cxx
src/FrontTrack/FrontTrack_Utils.cxx

index ce24d4b0af99dc73fc8c198b1c0b8f02396e1f31..5a76d6cf8d182b3ba6ad893bc6fcd3a9ff3a11eb 100755 (executable)
@@ -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;
 
index 129d4f37fd8d1747d2606207d8532153a6c3db95..53aef37ae29986d76d4141627856809c30cc6394 100755 (executable)
@@ -138,7 +138,7 @@ int FT_Utils::XaoGroups::getProjectors( const std::string&                   gro
     // IDs in XAO correspond to indices of allProjectors
     std::set<int>::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 ]);
   }