Skip to content

Commit

Permalink
Fixed bug transforming persons. Refs #457
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Sep 23, 2024
1 parent 9660ba5 commit 18ac01d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/netedit/elements/demand/GNEPersonTrip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,12 @@ GNEPersonTrip::getAttribute(SumoXMLAttr key) const {

double
GNEPersonTrip::getAttributeDouble(SumoXMLAttr key) const {
return getPlanAttributeDouble(key);
switch (key) {
case SUMO_ATTR_WALKFACTOR:
return myWalkFactor;
default:
return getPlanAttributeDouble(key);
}
}


Expand Down

0 comments on commit 18ac01d

Please sign in to comment.