diff options
author | xuri <xuri.me@gmail.com> | 2019-12-23 00:07:40 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-12-23 00:07:40 +0800 |
commit | 4e4a5b9b3e052d1694442515492792fb1aa74c5a (patch) | |
tree | ebb0746cc3a26e50ed921f6f25cb295be6c3c417 /cell.go | |
parent | ae2865d9237cfd27d7bc4fbef3870b3361597be8 (diff) |
Improve compatibility, fix workbook's rels ID calc error
Diffstat (limited to 'cell.go')
-rw-r--r-- | cell.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -395,7 +395,7 @@ func (f *File) SetCellHyperLink(sheet, axis, link, linkType string) error { linkData = xlsxHyperlink{ Ref: axis, } - sheetPath, _ := f.sheetMap[trimSheetName(sheet)] + sheetPath := f.sheetMap[trimSheetName(sheet)] sheetRels := "xl/worksheets/_rels/" + strings.TrimPrefix(sheetPath, "xl/worksheets/") + ".rels" rID := f.addRels(sheetRels, SourceRelationshipHyperLink, link, linkType) linkData.RID = "rId" + strconv.Itoa(rID) |