浏览代码

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;
 }