summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-05-13 01:03:40 +0800
committerxuri <xuri.me@gmail.com>2022-05-13 01:03:40 +0800
commit0c3fd0223c784ddcc7d2442105b920587b970727 (patch)
treeed68a94d6d0c989d85ba60bf21aeb8c772c915de /sheet.go
parenteed431e0fc2f61b13e7745857a41cb47d9f7f810 (diff)
This closes #1225, allowing insert EMF format images
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sheet.go b/sheet.go
index 3986cd8..4665fd9 100644
--- a/sheet.go
+++ b/sheet.go
@@ -463,7 +463,7 @@ func (f *File) SetSheetBackground(sheet, picture string) error {
if _, err = os.Stat(picture); os.IsNotExist(err) {
return err
}
- ext, ok := supportImageTypes[path.Ext(picture)]
+ ext, ok := supportedImageTypes[path.Ext(picture)]
if !ok {
return ErrImgExt
}