fix getRowHeight actually get the height of the next row (#860)

This commit is contained in:
strong 2021-06-13 14:42:09 +08:00 committed by GitHub
parent bffb5d6b41
commit c62ced7ca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ func (f *File) getRowHeight(sheet string, row int) int {
ws, _ := f.workSheetReader(sheet)
for i := range ws.SheetData.Row {
v := &ws.SheetData.Row[i]
if v.R == row+1 && v.Ht != 0 {
if v.R == row && v.Ht != 0 {
return int(convertRowHeightToPixels(v.Ht))
}
}