【修复】修复 读取excel纵表转置时一个越界bug

main
walon 2021-07-06 15:20:20 +08:00
parent 1a8f2a5231
commit 28f5428472
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ namespace Luban.Job.Cfg.DataSources.Excel
var row = new List<Cell>(); var row = new List<Cell>();
for (int j = 0; j < rows.Count; j++) for (int j = 0; j < rows.Count; j++)
{ {
row.Add(i < rows[i].Count ? rows[j][i] : new Cell(j + 1, i, null)); row.Add(i < rows[j].Count ? rows[j][i] : new Cell(j + 1, i, null));
} }
this._rowColumns.Add(row); this._rowColumns.Add(row);
} }