mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
Fast fertig für v 2.0
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user