Skip to content
Snippets Groups Projects
Commit c5ca8c66 authored by Karsten Rink's avatar Karsten Rink Committed by GitHub
Browse files

Merge pull request #1465 from rinkk/SwmmUpdate2

SwmmInterface BugFix
parents 088f3e48 7b8cf346
No related branches found
No related tags found
No related merge requests found
...@@ -483,6 +483,11 @@ bool SwmmInterface::convertSwmmInputToGeometry(std::string const& inp_file_name, ...@@ -483,6 +483,11 @@ bool SwmmInterface::convertSwmmInputToGeometry(std::string const& inp_file_name,
i--; i--;
} }
} }
if (line->getPointID(0) == line->getPointID(line->getNumberOfPoints()-1))
{
line->removePoint(line->getNumberOfPoints()-1);
line->addPoint(line->getPointID(0));
}
} }
geo_objects.addPolylineVec(std::move(lines), geo_name, line_id_map); geo_objects.addPolylineVec(std::move(lines), geo_name, line_id_map);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment