summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorjaby <peter.de.velder@ilias-solutions.com>2020-07-14 17:05:43 +0200
committerGitHub <noreply@github.com>2020-07-14 23:05:43 +0800
commit5993a07422b6ace5230f562551f014180a83515a (patch)
tree2429c3a1d2b151fd40587807c75b7c110bb4fe75 /sheet.go
parent0aa15106947965bdae9daae7571a4a3f569bf32d (diff)
Fix issue 665 (#666)
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sheet.go b/sheet.go
index bbe84c2..20bf7c7 100644
--- a/sheet.go
+++ b/sheet.go
@@ -1421,7 +1421,7 @@ func (f *File) GetDefinedName() []DefinedName {
RefersTo: dn.Data,
Scope: "Workbook",
}
- if dn.LocalSheetID != nil {
+ if dn.LocalSheetID != nil && *dn.LocalSheetID >= 0 {
definedName.Scope = f.getSheetNameByID(*dn.LocalSheetID + 1)
}
definedNames = append(definedNames, definedName)