Skip to content

Commit

Permalink
fix: insert header cell at the beginning of cells
Browse files Browse the repository at this point in the history
  • Loading branch information
PrettyWood committed Oct 8, 2024
1 parent 21c7f61 commit f5cfdca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xlsb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ impl<RS: Read + Seek> ReaderRef<RS> for Xlsb<RS> {
// an empty cell at the beginning with row `header_row` and same column as the first non-empty cell.
if cells.first().map_or(false, |c| c.pos.0 != header_row_idx) {
cells.insert(
header_row_idx as usize,
0,
Cell {
pos: (
header_row_idx,
Expand Down
2 changes: 1 addition & 1 deletion src/xlsx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ impl<RS: Read + Seek> ReaderRef<RS> for Xlsx<RS> {
// an empty cell at the beginning with row `header_row` and same column as the first non-empty cell.
if cells.first().map_or(false, |c| c.pos.0 != header_row_idx) {
cells.insert(
header_row_idx as usize,
0,
Cell {
pos: (
header_row_idx,
Expand Down

0 comments on commit f5cfdca

Please sign in to comment.