Skip to content

Commit

Permalink
Fix for carbuna
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed Jun 27, 2024
1 parent 727e7c6 commit 5f50ef1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions projects/GKCore/GDModel/GDMLocationRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,9 @@ public GDMList<GDMLocationName> GetFullNames(GDMTree tree, ATDEnumeration atdEnu
}

// search of intersections of location names and intersections of top levels/names
for (int i = 0; i < fNames.Count; i++) {
var locName = fNames[i];
var q = new Queue<GDMLocationName>(fNames);
while (q.Count>0) {
var locName = q.Dequeue();
string nVal = (abbreviations && !string.IsNullOrEmpty(locName.Abbreviation)) ? locName.Abbreviation : locName.StringValue;

bool wasJoin = false;
Expand All @@ -225,17 +226,18 @@ public GDMList<GDMLocationName> GetFullNames(GDMTree tree, ATDEnumeration atdEnu
var differences = GDMCustomDate.GetDifference(topDate, locName.Date.Value);
foreach (var difference in differences) {
if (!difference.IsEmpty()) {
result.Add(new GDMLocationName(nVal, difference));
q.Enqueue(new GDMLocationName(nVal, difference));
}
}

wasJoin = true;
break;
}
}

// if (!wasJoin) {
if (!wasJoin) {
result.Add(new GDMLocationName(nVal, locName.Date.Value));
// }
}
}
}

Expand Down

0 comments on commit 5f50ef1

Please sign in to comment.