summaryrefslogtreecommitdiff
path: root/excelize.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-10-18 19:07:35 +0800
committerRi Xu <xuri.me@gmail.com>2017-10-18 19:07:35 +0800
commit8077732dff19367a83a222e098d801e21a7c9b56 (patch)
tree8d980908757791850e288281ac8ce9afd76ac890 /excelize.go
parentb4ffa8ce48fdddc9b269d254b25e93921b8327f2 (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.go2
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"
}