소스 검색

chang tool/map_lanetoxodr. solve split S problem.

yuchuli 4 년 전
부모
커밋
85f4e480b0
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/tool/map_lanetoxodr/dialogroadsplit.cpp

+ 4 - 1
src/tool/map_lanetoxodr/dialogroadsplit.cpp

@@ -491,10 +491,13 @@ int DialogRoadSplit::SplitLaneSection(Road *proad1, Road *proad2,  vector<LaneSe
             proad2->GetLaneSectionVector()->insert(proad2->GetLaneSectionVector()->begin(),LS);
         }
 
-        for(i=0;i<proad2->GetLaneSectionCount();i++)
+        proad2->GetLaneSectionVector()->at(0).SetS(0);
+
+        for(i=1;i<proad2->GetLaneSectionCount();i++)
         {
             proad2->GetLaneSectionVector()->at(i).SetS(proad2->GetLaneSectionVector()->at(i).GetS() - flen1);
         }
+
     }
     return 0;
 }