forked from p30928647/excelize
fix getRowHeight actually get the height of the next row (#860)
This commit is contained in:
parent
bffb5d6b41
commit
c62ced7ca7
2
rows.go
2
rows.go
|
@ -271,7 +271,7 @@ func (f *File) getRowHeight(sheet string, row int) int {
|
||||||
ws, _ := f.workSheetReader(sheet)
|
ws, _ := f.workSheetReader(sheet)
|
||||||
for i := range ws.SheetData.Row {
|
for i := range ws.SheetData.Row {
|
||||||
v := &ws.SheetData.Row[i]
|
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))
|
return int(convertRowHeightToPixels(v.Ht))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue