Fixes for oneway-change

This commit is contained in:
2023-04-09 23:55:24 +02:00
parent 874d60992e
commit 6b496957d7
3 changed files with 8 additions and 7 deletions

View File

@ -130,8 +130,9 @@ public class RegionConverter
if (wayReader.Name == "tag")
{
HashSet<Tag> pTags = Tag.ConvertToTags(wayReader.GetAttribute("k")!, wayReader.GetAttribute("v")!);
foreach (Tag pTag in pTags)
currentTags.TryAdd(pTag.key, pTag.value);
if(pTags.Count > 0)
foreach (Tag pTag in pTags)
currentTags.TryAdd(pTag.key, pTag.value);
}
else if (wayReader.Name == "nd")
{