summaryrefslogtreecommitdiff
path: root/chart.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-09-24 21:53:19 +0800
committerxuri <xuri.me@gmail.com>2019-09-24 21:53:19 +0800
commita34d3b8c86d67d3ad0bc0dbedb69d3b4ebbc210f (patch)
treeb281ae447cdf2f9355cde1d04098db664882a759 /chart.go
parent75d66a03f33f25c29167c5f75ee8a4cc58598420 (diff)
Compatibility improvement
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 db2df1e..7db7eee 100644
--- a/chart.go
+++ b/chart.go
@@ -1845,7 +1845,7 @@ func (f *File) addDrawingChart(sheet, drawingXML, cell string, width, height, rI
graphicFrame := xlsxGraphicFrame{
NvGraphicFramePr: xlsxNvGraphicFramePr{
CNvPr: &xlsxCNvPr{
- ID: f.countCharts() + f.countMedia() + 1,
+ ID: len(content.OneCellAnchor) + len(content.TwoCellAnchor) + 2,
Name: "Chart " + strconv.Itoa(cNvPrID),
},
},