diff options
| author | xuri <xuri.me@gmail.com> | 2021-07-07 00:57:43 +0800 | 
|---|---|---|
| committer | xuri <xuri.me@gmail.com> | 2021-07-07 00:57:43 +0800 | 
| commit | 90d200a10ba4d8c2ae2eff47ad8e1cca0ab28e76 (patch) | |
| tree | 7579365b99b61562404ced4d71058b917b92f003 /sheet.go | |
| parent | b7fece51736977e7d84aca30ecce7f6b3a1251f2 (diff) | |
Make the functions `SetSheetRow`, `New Style` and `SetCellStyle` concurrency safety
Diffstat (limited to 'sheet.go')
| -rw-r--r-- | sheet.go | 2 | 
1 files changed, 2 insertions, 0 deletions
@@ -1777,6 +1777,8 @@ func fillColumns(rowData *xlsxRow, col, row int) {  // makeContiguousColumns make columns in specific rows as contiguous.  func makeContiguousColumns(ws *xlsxWorksheet, fromRow, toRow, colCount int) { +	ws.Lock() +	defer ws.Unlock()  	for ; fromRow < toRow; fromRow++ {  		rowData := &ws.SheetData.Row[fromRow-1]  		fillColumns(rowData, colCount, fromRow)  | 
