summaryrefslogtreecommitdiff
path: root/chart.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2018-10-17 00:28:31 +0800
committerxuri <xuri.me@gmail.com>2018-10-17 00:28:31 +0800
commit1c45425f12f38012b975c36f4d17bd1cec3c0aba (patch)
tree51b99939364569dd6e1f2341c2395ec5e7af52ed /chart.go
parentd8a34af384d2fa2493e80bf0259454043b3ff54e (diff)
resolve #276, add OfficeOpenXML-XMLSchema-Strict mode support
Diffstat (limited to 'chart.go')
-rw-r--r--chart.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart.go b/chart.go
index 5353a32..edfcab7 100644
--- a/chart.go
+++ b/chart.go
@@ -1097,7 +1097,7 @@ func (f *File) drawingParser(drawingXML string, content *xlsxWsDr) int {
_, ok := f.XLSX[drawingXML]
if ok { // Append Model
decodeWsDr := decodeWsDr{}
- _ = xml.Unmarshal([]byte(f.readXML(drawingXML)), &decodeWsDr)
+ _ = xml.Unmarshal(namespaceStrictToTransitional(f.readXML(drawingXML)), &decodeWsDr)
content.R = decodeWsDr.R
cNvPrID = len(decodeWsDr.OneCellAnchor) + len(decodeWsDr.TwoCellAnchor) + 1
for _, v := range decodeWsDr.OneCellAnchor {