Skip to content

Commit

Permalink
final source of mismatch. fix #14699
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 12, 2024
1 parent 8f563d4 commit 1506a63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/netwrite/NWWriter_SUMO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ NWWriter_SUMO::getInternalBidi(const NBEdge* e, const NBEdge::Connection& k, dou
const std::vector<NBEdge::Connection> cons = toBidi->getConnectionsFromLane(-1, fromBidi, -1);
if (cons.size() > 0) {
if (e->getNumLanes() == 1 && k.toEdge->getNumLanes() == 1 && fromBidi->getNumLanes() == 1 && toBidi->getNumLanes() == 1) {
length = (k.length + cons.back().length) / 2;
return cons.back().id;
}
// do a more careful check in case there are parallel internal edges
Expand Down

0 comments on commit 1506a63

Please sign in to comment.