Fast fertig für v 2.0

This commit is contained in:
Simon Martens
2022-01-26 19:31:29 +01:00
parent 1af73a2ded
commit 0d1905c761
13 changed files with 36866 additions and 20824 deletions

View File

@@ -31,7 +31,8 @@ namespace HaDocument.Reactors
{
_normalizeWhitespace = normalizeWhitespace;
lib.Letters = new Dictionary<string, Letter>();
lib.Hands = new Dictionary<string, List<Hand>>();
if (lib.Hands == null)
lib.Hands = new Dictionary<string, List<Hand>>();
if (lib.LetterPageLines == null)
lib.LetterPageLines = new Dictionary<string, Dictionary<string, HashSet<string>>>();
CreatedHands = lib.Hands;
@@ -126,7 +127,10 @@ namespace HaDocument.Reactors
CreatedInstances.TryAdd(Index, letter);
if (_hands != null)
{
CreatedHands.Add(Index, _hands);
if (!CreatedHands.ContainsKey(Index))
CreatedHands.Add(Index, _hands);
else
CreatedHands[Index].AddRange(_hands);
}
Reset();
}