From b7fece51736977e7d84aca30ecce7f6b3a1251f2 Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 6 Jul 2021 00:31:04 +0800 Subject: Support concurrency add picture --- rows.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rows.go') 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 { -- cgit v1.2.1