未验证 提交 c62ced7c 编写于 作者: S strong 提交者: GitHub

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

上级 bffb5d6b
......@@ -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))
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册