Skip to content

Commit

Permalink
Fixed by decrementing cellY by 1 first
Browse files Browse the repository at this point in the history
Modified to stop decrementing when skip is set,
because cellY was decreased by 1.
  • Loading branch information
noborus committed Nov 20, 2023
1 parent 6fa9402 commit 0eda609
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ func NewXLSXReader(reader io.Reader, opts *trdsql.ReadOpts) (trdsql.Reader, erro
}

r := XLSXReader{}
skip := 0
if cellY > 0 {
skip = cellY - 1
}
skip := cellY
if opts.InSkip > 0 {
skip = opts.InSkip
}
Expand Down

0 comments on commit 0eda609

Please sign in to comment.