prevent double lookup
This commit is contained in:
@@ -80,7 +80,7 @@ namespace QuestPDF.Elements.Table
|
||||
|
||||
CellsCache = Enumerable
|
||||
.Range(0, MaxRow + 1)
|
||||
.Select(x => groups.ContainsKey(x) ? groups[x] : Array.Empty<TableCell>())
|
||||
.Select(x => groups.TryGetValue(x, out var value) ? value : Array.Empty<TableCell>())
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user