Forráskód Böngészése

change tool/map_lantoxodr. fix a connect road bug, and update show.

yuchuli 3 éve
szülő
commit
44a99fa766

+ 11 - 0
src/tool/map_lanetoxodr/dialogroadborrow.ui

@@ -191,6 +191,17 @@
    </property>
   </widget>
  </widget>
+ <tabstops>
+  <tabstop>comboBox_Road</tabstop>
+  <tabstop>lineEdit_RoadLen</tabstop>
+  <tabstop>comboBox_Borrow</tabstop>
+  <tabstop>pushButton_Add</tabstop>
+  <tabstop>pushButton_Delete</tabstop>
+  <tabstop>pushButton_Change</tabstop>
+  <tabstop>lineEdit_s</tabstop>
+  <tabstop>lineEdit_t</tabstop>
+  <tabstop>comboBox_borrowmode</tabstop>
+ </tabstops>
  <resources/>
  <connections/>
 </ui>

+ 7 - 1
src/tool/map_lanetoxodr/mainwindow.cpp

@@ -3048,7 +3048,7 @@ void MainWindow::onClickRoadContact()
         if(ntype1 == 0)
             pLS = p2->GetLaneSection(0);
         else
-            pLS = p2->GetLaneSection(p1->GetLaneSectionCount()-1);
+            pLS = p2->GetLaneSection(p2->GetLaneSectionCount()-1);
         int i;
         for(i=0;i<pLS->GetLaneCount();i++)
         {
@@ -3649,6 +3649,12 @@ void MainWindow::onClickCreateRoad()
     mbRefresh = true;
     update();
 
+    if(mpCBViewMode->currentIndex() == 1)
+    {
+        UpdateScene();
+    }
+
+
     mpfb->SetOpenDrive(mxodr);
 
 }