Skip to content

Commit

Permalink
Fixed #15906
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Dec 16, 2024
1 parent 5d83955 commit 45ba689
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/netedit/dialogs/GNECalibratorFlowDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,12 @@ void
GNECalibratorFlowDialog::updateCalibratorFlowValues() {
// update fields
myComboBoxVehicleType->setCurrentItem(myComboBoxVehicleType->findItem(myEditedAdditional->getAttribute(SUMO_ATTR_TYPE).c_str()));
myComboBoxRoute->setCurrentItem(myComboBoxVehicleType->findItem(myEditedAdditional->getAttribute(SUMO_ATTR_ROUTE).c_str()));
const int routeIndex = myComboBoxVehicleType->findItem(myEditedAdditional->getAttribute(SUMO_ATTR_ROUTE).c_str());
if (routeIndex == -1) {
myComboBoxRoute->setCurrentItem(0);
} else {
myComboBoxRoute->setCurrentItem(routeIndex);
}
myTextFieldVehsPerHour->setText(myEditedAdditional->getAttribute(SUMO_ATTR_VEHSPERHOUR).c_str());
myTextFieldSpeed->setText(myEditedAdditional->getAttribute(SUMO_ATTR_SPEED).c_str());
myTextFieldColor->setText(myEditedAdditional->getAttribute(SUMO_ATTR_COLOR).c_str());
Expand Down

0 comments on commit 45ba689

Please sign in to comment.