Skip to content

Commit

Permalink
Deal with multiple writing systems with same tag (#141)
Browse files Browse the repository at this point in the history
Occasionally there's a project with malformed data where two different
writing systems have the same tag. We don't try to fix that data, we
just ensure that LfMerge will be able to carry on without throwing an
exception in that instance.
  • Loading branch information
rmunn authored Sep 22, 2021
1 parent bb35238 commit 8d4258e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LfMerge.Core/DataConverters/ConvertLcmToMongoLexicon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,9 @@ private Dictionary<string, LfInputSystemRecord> LcmWsToLfWs()
};

#if FW8_COMPAT
lfWsList.Add(LcmWs.Id, lfWs);
lfWsList[LcmWs.Id] = lfWs;
#else
lfWsList.Add(LcmWs.LanguageTag, lfWs);
lfWsList[LcmWs.LanguageTag] = lfWs;
#endif
}
return lfWsList;
Expand Down

0 comments on commit 8d4258e

Please sign in to comment.