Skip to content

Commit

Permalink
fix #15073
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Jun 21, 2024
1 parent 09bde91 commit b120cd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/netedit/GNENet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,9 @@ GNENet::joinSelectedJunctions(GNEUndoList* undoList) {
}
// remap edges
for (const auto& incomingEdge : allIncoming) {
GNEChange_Attribute::changeAttribute(myAttributeCarriers->getEdges().at(incomingEdge->getID()).second, SUMO_ATTR_TO, joined->getID(), undoList);
if (std::find(allOutgoing.begin(), allOutgoing.end(), incomingEdge) == allOutgoing.end()) {
GNEChange_Attribute::changeAttribute(myAttributeCarriers->getEdges().at(incomingEdge->getID()).second, SUMO_ATTR_TO, joined->getID(), undoList);
}
}
EdgeSet edgesWithin;
for (const auto& outgoingEdge : allOutgoing) {
Expand Down

0 comments on commit b120cd5

Please sign in to comment.