From 961a3e89330ab2cd5257e04384813a7e53ea3744 Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 6 Sep 2022 14:38:09 +0800 Subject: Fix get image content was empty after inserting image --- picture.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'picture.go') diff --git a/picture.go b/picture.go index d087c61..07d18cc 100644 --- a/picture.go +++ b/picture.go @@ -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") -- cgit v1.2.1