Skip to content

Commit

Permalink
addendum refs #14296 (only write extra stop for the first element of …
Browse files Browse the repository at this point in the history
…the plan)
  • Loading branch information
namdre committed Mar 5, 2024
1 parent ea3c188 commit 9a28efd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/netedit/elements/demand/GNEDemandElementPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@ GNEDemandElementPlan::writeLocationAttributes(OutputDevice& device) const {
void
GNEDemandElementPlan::writeOriginStop(OutputDevice& device) const {
const auto tagProperty = myPlanElement->getTagProperty();
if (tagProperty.planFromStoppingPlace()) {
// write extra stop element for a stopping place (if this is the first element)
if (tagProperty.planFromStoppingPlace()
&& myPlanElement->getParentDemandElements().at(0)->getPreviousChildDemandElement(myPlanElement) == nullptr) {
device.openTag(SUMO_TAG_STOP);
const std::string stopID = myPlanElement->getParentAdditionals().front()->getID();
if (tagProperty.planFromBusStop()) {
Expand Down

0 comments on commit 9a28efd

Please sign in to comment.