summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sheet.go b/sheet.go
index b48cc9a..f67ca9f 100644
--- a/sheet.go
+++ b/sheet.go
@@ -450,7 +450,7 @@ func (f *File) HideSheet(name string) {
content := f.workbookReader()
count := 0
for _, v := range content.Sheets.Sheet {
- if v.State != `hidden` {
+ if v.State != "hidden" {
count++
}
}
@@ -462,7 +462,7 @@ func (f *File) HideSheet(name string) {
tabSelected = xlsx.SheetViews.SheetView[0].TabSelected
}
if v.Name == name && count > 1 && !tabSelected {
- content.Sheets.Sheet[k].State = `hidden`
+ content.Sheets.Sheet[k].State = "hidden"
}
}
}