mirror of
https://gitee.com/dotnetchina/MiniExcel.git
synced 2024-11-29 18:38:08 +08:00
[fix] when first row(s) is empty, query return data will not contain the empty row(s) (#578)
Co-authored-by: hansen <hansen@bytedance.com>
This commit is contained in:
parent
b27b169e2a
commit
9e3f1bd58d
@ -288,11 +288,12 @@ namespace MiniExcelLibs.OpenXml
|
||||
}
|
||||
|
||||
// fill empty rows
|
||||
if (!(nextRowIndex < startRowIndex))
|
||||
var expectedRowIndex = isFirstRow ? startRowIndex : nextRowIndex;
|
||||
if (!(expectedRowIndex < startRowIndex))
|
||||
{
|
||||
if (nextRowIndex < rowIndex)
|
||||
if (expectedRowIndex < rowIndex)
|
||||
{
|
||||
for (int i = nextRowIndex; i < rowIndex; i++)
|
||||
for (int i = expectedRowIndex; i < rowIndex; i++)
|
||||
{
|
||||
yield return GetCell(useHeaderRow, maxColumnIndex, headRows, startColumnIndex);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user