diff options
| author | Ri Xu <xuri.me@gmail.com> | 2017-10-18 19:07:35 +0800 |
|---|---|---|
| committer | Ri Xu <xuri.me@gmail.com> | 2017-10-18 19:07:35 +0800 |
| commit | 8077732dff19367a83a222e098d801e21a7c9b56 (patch) | |
| tree | 8d980908757791850e288281ac8ce9afd76ac890 /excelize.go | |
| parent | b4ffa8ce48fdddc9b269d254b25e93921b8327f2 (diff) | |
Bugfix: read sheet name error, relate issue #137
Signed-off-by: Ri Xu <xuri.me@gmail.com>
Diffstat (limited to 'excelize.go')
| -rw-r--r-- | excelize.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/excelize.go b/excelize.go index 95bce34..73c6eda 100644 --- a/excelize.go +++ b/excelize.go @@ -80,7 +80,7 @@ func (f *File) setDefaultTimeStyle(sheet, axis string) { // workSheetReader provides function to get the pointer to the structure after // deserialization by given worksheet index. func (f *File) workSheetReader(sheet string) *xlsxWorksheet { - name, ok := f.sheetMap[sheet] + name, ok := f.sheetMap[trimSheetName(sheet)] if !ok { name = "xl/worksheets/" + strings.ToLower(sheet) + ".xml" } |
