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 --- xmlDrawing.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'xmlDrawing.go') diff --git a/xmlDrawing.go b/xmlDrawing.go index 4b51b63..4e35fcf 100644 --- a/xmlDrawing.go +++ b/xmlDrawing.go @@ -11,7 +11,10 @@ package excelize -import "encoding/xml" +import ( + "encoding/xml" + "sync" +) // Source relationship and namespace list, associated prefixes and schema in which it was // introduced. @@ -303,6 +306,7 @@ type xlsxPoint2D struct { // xlsxWsDr directly maps the root element for a part of this content type shall // wsDr. type xlsxWsDr struct { + sync.Mutex XMLName xml.Name `xml:"xdr:wsDr"` AbsoluteAnchor []*xdrCellAnchor `xml:"xdr:absoluteAnchor"` OneCellAnchor []*xdrCellAnchor `xml:"xdr:oneCellAnchor"` -- cgit v1.2.1