Skip to content

Commit

Permalink
now handling trips. refs #14863
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed May 16, 2024
1 parent 105f637 commit e155ab8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/netedit/GNENet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,15 @@ GNENet::replaceIncomingEdge(GNEEdge* which, GNEEdge* by, GNEUndoList* undoList)
if (demandElement->hasAttribute(SUMO_ATTR_EDGES)) {
replaceInListAttribute(demandElement, SUMO_ATTR_EDGES, which->getID(), by->getID(), undoList);
}
if (demandElement->hasAttribute(SUMO_ATTR_VIA)) {
replaceInListAttribute(demandElement, SUMO_ATTR_VIA, which->getID(), by->getID(), undoList);
}
if (demandElement->hasAttribute(SUMO_ATTR_FROM) && demandElement->getAttribute(SUMO_ATTR_FROM) == which->getID()) {
GNEChange_Attribute::changeAttribute(demandElement, SUMO_ATTR_FROM, by->getID(), undoList);
}
if (demandElement->hasAttribute(SUMO_ATTR_TO) && demandElement->getAttribute(SUMO_ATTR_TO) == which->getID()) {
GNEChange_Attribute::changeAttribute(demandElement, SUMO_ATTR_TO, by->getID(), undoList);
}
}
// replace in data
const std::vector<GNEGenericData*> dataElements = which->getChildGenericDatas();
Expand Down

0 comments on commit e155ab8

Please sign in to comment.