Skip to content

Commit

Permalink
Fixed error writing period introduced in 9ba9195. Refs #457
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Jan 15, 2025
1 parent f3214c4 commit 0676686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netedit/elements/additional/GNEDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ GNEDetector::isDetectorValid(SumoXMLAttr key, const std::string& value) {

void
GNEDetector::writeDetectorValues(OutputDevice& device) const {
if (myPeriod != SUMOTime_MAX_PERIOD) {
if ((myPeriod > 0) && (myPeriod != SUMOTime_MAX_PERIOD)) {
device.writeAttr(SUMO_ATTR_PERIOD, time2string(myPeriod));
}
if (myAdditionalName.size() > 0) {
Expand Down

0 comments on commit 0676686

Please sign in to comment.