summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorstrong <372045127@qq.com>2021-06-13 14:42:09 +0800
committerGitHub <noreply@github.com>2021-06-13 14:42:09 +0800
commitc62ced7ca7a6cf715f62bd10981560a809c723dd (patch)
tree8604190e4ac31794ef1c62f3dd563143b45564af /rows.go
parentbffb5d6b41f409258a2f0c126a04127f31e28a06 (diff)
fix getRowHeight actually get the height of the next row (#860)
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go2
1 files changed, 1 insertions, 1 deletions
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))
}
}