diff options
author | xuri <xuri.me@gmail.com> | 2020-04-02 00:41:14 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-04-05 13:51:00 +0800 |
commit | 0f2a9053246c3ae45e6c7ba911a1fb135664abdf (patch) | |
tree | 7428d041bcd06956933003598fa56b0b0c246945 /sparkline.go | |
parent | 59f6af21a378fdde21422a92b79a7b03bba313d4 (diff) |
Performance improvements
Diffstat (limited to 'sparkline.go')
-rw-r--r-- | sparkline.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sparkline.go b/sparkline.go index ef99da6..f1e1f40 100644 --- a/sparkline.go +++ b/sparkline.go @@ -516,7 +516,7 @@ func (f *File) appendSparkline(ws *xlsxWorksheet, group *xlsxX14SparklineGroup, for idx, ext = range decodeExtLst.Ext { if ext.URI == ExtURISparklineGroups { decodeSparklineGroups = new(decodeX14SparklineGroups) - if err = f.xmlNewDecoder(bytes.NewReader([]byte(ext.Content))). + if err = f.xmlNewDecoder(bytes.NewReader(stringToBytes(ext.Content))). Decode(decodeSparklineGroups); err != nil && err != io.EOF { return } |