diff options
author | xuri <xuri.me@gmail.com> | 2022-09-06 14:38:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 14:38:09 +0800 |
commit | 961a3e89330ab2cd5257e04384813a7e53ea3744 (patch) | |
tree | 8eb4109debeb8265c22ca6f434f1076077b9b592 /picture.go | |
parent | 00470c17d95cb0f70b57b6fb0092b6f873949cd1 (diff) |
Fix get image content was empty after inserting image
Diffstat (limited to 'picture.go')
-rw-r--r-- | picture.go | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -505,9 +505,6 @@ func (f *File) GetPicture(sheet, cell string) (string, []byte, error) { } target := f.getSheetRelationshipsTargetByID(sheet, ws.Drawing.RID) drawingXML := strings.ReplaceAll(target, "..", "xl") - if _, ok := f.Pkg.Load(drawingXML); !ok { - return "", nil, err - } drawingRelationships := strings.ReplaceAll( strings.ReplaceAll(target, "../drawings", "xl/drawings/_rels"), ".xml", ".xml.rels") |