Skip to content

Commit

Permalink
fix #14732
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 17, 2024
1 parent 4ee0717 commit f9be5e3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/netedit/elements/network/GNEConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -927,19 +927,11 @@ GNEConnection::setAttribute(SumoXMLAttr key, const std::string& value) {
nbCon.customLength = parse<double>(value);
break;
case SUMO_ATTR_ALLOW: {
const SVCPermissions successorAllows = nbCon.toEdge->getLanes()[nbCon.toLane].permissions;
SVCPermissions customPermissions = parseVehicleClasses(value);
if (successorAllows != customPermissions) {
nbCon.permissions = customPermissions;
}
nbCon.permissions = parseVehicleClasses(value);
break;
}
case SUMO_ATTR_DISALLOW: {
const SVCPermissions successorDisallows = invertPermissions(nbCon.toEdge->getLanes()[nbCon.toLane].permissions);
SVCPermissions customPermissions = invertPermissions(parseVehicleClasses(value));
if (successorDisallows != customPermissions) {
nbCon.permissions = customPermissions;
}
nbCon.permissions = invertPermissions(parseVehicleClasses(value));
break;
}
case SUMO_ATTR_CHANGE_LEFT: {
Expand Down

1 comment on commit f9be5e3

@behrisch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably say "fix #14723"

Please sign in to comment.