Skip to content

Commit

Permalink
fix #14766
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 24, 2024
1 parent 8d2c24c commit 6ebdb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netimport/NIImporter_OpenStreetMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2020,7 +2020,7 @@ NIImporter_OpenStreetMap::RelationHandler::myEndElement(int element) {
if (myPlatform.isWay) {
assert(myPlatformShapes.find(myPlatform.ref) != myPlatformShapes.end()); //already tested earlier
Edge* edge = (*myPlatformShapes.find(myPlatform.ref)).second;
if (edge->myCurrentNodes[0] == *(edge->myCurrentNodes.end() - 1)) {
if (edge->myCurrentNodes.size() > 1 && edge->myCurrentNodes[0] == *(edge->myCurrentNodes.end() - 1)) {
WRITE_WARNINGF(TL("Platform '%' in relation: '%' is given as polygon, which currently is not supported."), myPlatform.ref, myCurrentRelation);
continue;

Expand Down

0 comments on commit 6ebdb30

Please sign in to comment.