From 6626a26f7baca10773f4066de47a811a8a89d236 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Tue, 1 Aug 2017 16:35:18 +0800 Subject: Simplify code and update unit tests. --- sheet.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sheet.go') diff --git a/sheet.go b/sheet.go index 2f99adf..f7fcece 100644 --- a/sheet.go +++ b/sheet.go @@ -629,11 +629,10 @@ func (f *File) SetPanes(sheet, panes string) { // xlsx.GetSheetVisible("Sheet1") // func (f *File) GetSheetVisible(name string) bool { - name = trimSheetName(name) content := f.workbookReader() visible := false for k, v := range content.Sheets.Sheet { - if v.Name == name { + if v.Name == trimSheetName(name) { if content.Sheets.Sheet[k].State == "" || content.Sheets.Sheet[k].State == "visible" { visible = true } -- cgit v1.2.1