From 8077732dff19367a83a222e098d801e21a7c9b56 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Wed, 18 Oct 2017 19:07:35 +0800 Subject: Bugfix: read sheet name error, relate issue #137 Signed-off-by: Ri Xu --- excelize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'excelize.go') 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" } -- cgit v1.2.1