From c62ced7ca7a6cf715f62bd10981560a809c723dd Mon Sep 17 00:00:00 2001 From: strong <372045127@qq.com> Date: Sun, 13 Jun 2021 14:42:09 +0800 Subject: [PATCH] fix getRowHeight actually get the height of the next row (#860) --- rows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rows.go b/rows.go index 6c0e816..6360f4e 100644 --- a/rows.go +++ b/rows.go @@ -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)) } }