diff options
author | xuri <xuri.me@gmail.com> | 2019-09-24 21:53:19 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-09-24 21:53:19 +0800 |
commit | a34d3b8c86d67d3ad0bc0dbedb69d3b4ebbc210f (patch) | |
tree | b281ae447cdf2f9355cde1d04098db664882a759 /picture.go | |
parent | 75d66a03f33f25c29167c5f75ee8a4cc58598420 (diff) |
Compatibility improvement
Diffstat (limited to 'picture.go')
-rw-r--r-- | picture.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -272,7 +272,7 @@ func (f *File) addDrawingPicture(sheet, drawingXML, cell, file string, width, he twoCellAnchor.To = &to pic := xlsxPic{} pic.NvPicPr.CNvPicPr.PicLocks.NoChangeAspect = formatSet.NoChangeAspect - pic.NvPicPr.CNvPr.ID = f.countCharts() + f.countMedia() + 1 + pic.NvPicPr.CNvPr.ID = len(content.OneCellAnchor) + len(content.TwoCellAnchor) + 2 pic.NvPicPr.CNvPr.Descr = file pic.NvPicPr.CNvPr.Name = "Picture " + strconv.Itoa(cNvPrID) if hyperlinkRID != 0 { |