summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go3
1 files changed, 1 insertions, 2 deletions
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
}