|
@@ -3677,7 +3677,7 @@ void MainWindow::onClickCreateRoad()
|
|
|
pgb->AddGeometryParamPoly3(s,pbez->mfX,pbez->mfY,
|
|
|
pbez->mfHdg,pbez->mfLen,pbez->mfu[0],
|
|
|
pbez->mfu[1],pbez->mfu[2],pbez->mfu[3],pbez->mfv[0],
|
|
|
- pbez->mfv[1],pbez->mfv[2],pbez->mfv[3]);
|
|
|
+ pbez->mfv[1],pbez->mfv[2],pbez->mfv[3],false);
|
|
|
break;
|
|
|
}
|
|
|
s = s + xvectorgeo1[j].mfLen;
|
|
@@ -4800,6 +4800,10 @@ void MainWindow::onClickCBRoadChange(int index)
|
|
|
}
|
|
|
|
|
|
LaneSection * pLS = pRoad->GetLaneSection(0);
|
|
|
+ if(pLS == 0)
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
int nlanecount = pLS->GetLaneCount();
|
|
|
for(i=0;i<nlanecount;i++)
|
|
|
{
|
|
@@ -4946,6 +4950,10 @@ void MainWindow::onClickCBJunctionIncommingChange(int index)
|
|
|
{
|
|
|
pLS = pRoad->GetLaneSection(pRoad->GetLaneSectionCount()-1);
|
|
|
}
|
|
|
+ if(pLS == 0)
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
int nlanecount = pLS->GetLaneCount();
|
|
|
mpCBJunctionFromLane->clear();
|
|
|
for(i=0;i<nlanecount;i++)
|
|
@@ -4973,6 +4981,10 @@ void MainWindow::onClickCBJunctionConnectionroadChange(int index)
|
|
|
}
|
|
|
LaneSection * pLS;
|
|
|
pLS = pRoad->GetLaneSection(0);
|
|
|
+ if(pLS == 0)
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
int nlanecount = pLS->GetLaneCount();
|
|
|
mpCBJunctionToLane->clear();
|
|
|
for(i=0;i<nlanecount;i++)
|