summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-07-06 00:31:04 +0800
committerxuri <xuri.me@gmail.com>2021-07-06 00:31:04 +0800
commitb7fece51736977e7d84aca30ecce7f6b3a1251f2 (patch)
tree77c730b216adbdf54b1b5c3542478bfcb2e5c61b /rows.go
parent544ef18a8cb9949fcb8833c6d2816783c90f3318 (diff)
Support concurrency add picture
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rows.go b/rows.go
index 229b12d..a40f4a9 100644
--- a/rows.go
+++ b/rows.go
@@ -272,6 +272,8 @@ func (f *File) SetRowHeight(sheet string, row int, height float64) error {
// name and row number.
func (f *File) getRowHeight(sheet string, row int) int {
ws, _ := f.workSheetReader(sheet)
+ ws.Lock()
+ defer ws.Unlock()
for i := range ws.SheetData.Row {
v := &ws.SheetData.Row[i]
if v.R == row && v.Ht != 0 {