summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-02-08 18:05:15 +0800
committerxuri <xuri.me@gmail.com>2021-02-08 18:05:15 +0800
commit30549c5e90884789fff6599d6e773d1ca56ba962 (patch)
treef8df8c92279358fc6e3cd5ed8573bbaa794f0162 /rows.go
parent2fb135bc94bbb0c487563d166fd24786fab7280a (diff)
fix custom row height check issue
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 702d8f5..75bea47 100644
--- a/rows.go
+++ b/rows.go
@@ -290,7 +290,7 @@ func (f *File) GetRowHeight(sheet string, row int) (float64, error) {
if err != nil {
return ht, err
}
- if ws.SheetFormatPr != nil {
+ if ws.SheetFormatPr != nil && ws.SheetFormatPr.CustomHeight {
ht = ws.SheetFormatPr.DefaultRowHeight
}
if row > len(ws.SheetData.Row) {