Skip to content

Commit

Permalink
fixing typo in locomotiveLength handling. refs #457
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 18, 2024
1 parent 8adf2c3 commit 3bae01c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/netedit/dialogs/GNEVehicleTypeDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable() {
myVTypeAttributesParent->myCarriageLength->updateValue(toString(defaultVTypeParameters.containerCapacity));
}
if (!myVTypeAttributesParent->myVehicleTypeDialog->myEditedDemandElement->isAttributeEnabled(SUMO_ATTR_LOCOMOTIVE_LENGTH)) {
myVTypeAttributesParent->myLocomotiveLength->updateValue(toString(defaultVTypeParameters.containerCapacity));
myVTypeAttributesParent->myLocomotiveLength->updateValue(toString(defaultVTypeParameters.locomotiveLength));
}
// update GUIShape
if (myComboBoxVClass->getText().empty()) {
Expand Down
2 changes: 1 addition & 1 deletion src/netedit/elements/demand/GNEVType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@ GNEVType::setAttribute(SumoXMLAttr key, const std::string& value) {
}
break;
case SUMO_ATTR_LOCOMOTIVE_LENGTH:
if (!value.empty() && (value != toString(defaultValues.containerCapacity))) {
if (!value.empty() && (value != toString(defaultValues.locomotiveLength))) {
locomotiveLength = parse<double>(value);
// mark parameter as set
parametersSet |= VTYPEPARS_LOCOMOTIVE_LENGTH_SET;
Expand Down

0 comments on commit 3bae01c

Please sign in to comment.