diff options
author | xuri <xuri.me@gmail.com> | 2021-07-06 00:31:04 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-07-06 00:31:04 +0800 |
commit | b7fece51736977e7d84aca30ecce7f6b3a1251f2 (patch) | |
tree | 77c730b216adbdf54b1b5c3542478bfcb2e5c61b /xmlDrawing.go | |
parent | 544ef18a8cb9949fcb8833c6d2816783c90f3318 (diff) |
Support concurrency add picture
Diffstat (limited to 'xmlDrawing.go')
-rw-r--r-- | xmlDrawing.go | 6 |
1 files changed, 5 insertions, 1 deletions
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"` |