diff options
author | jaby <peter.de.velder@ilias-solutions.com> | 2020-07-14 17:05:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 23:05:43 +0800 |
commit | 5993a07422b6ace5230f562551f014180a83515a (patch) | |
tree | 2429c3a1d2b151fd40587807c75b7c110bb4fe75 /sheet.go | |
parent | 0aa15106947965bdae9daae7571a4a3f569bf32d (diff) |
Fix issue 665 (#666)
Diffstat (limited to 'sheet.go')
-rw-r--r-- | sheet.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |