Skip to content

Commit

Permalink
Fix subrow sheet counts
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Nov 16, 2024
1 parent c249f9f commit 017d154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Alpha/Services/Excel/AlphaSheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public IEnumerable<IAlphaRow> GetRows() {

public record AlphaSubrowSheet(SubrowExcelSheet<RawSubrow> Sheet, string Name) : IAlphaSheet {
public IReadOnlyList<ExcelColumnDefinition> Columns => this.Sheet.Columns;
public int Count => this.Sheet.Count;
public int Count => this.Sheet.Select(s => s.Count).Sum();

public IAlphaRow? GetRow(uint row, ushort? subrow = null) {
if (row == uint.MaxValue) return null;
Expand Down

0 comments on commit 017d154

Please sign in to comment.