20
0

Merge 16265a2d633c6c912a61c3a545f7fac6e4425ea4 into 4a6cf263071b975a90abf74ca3e804b48243be28

This commit is contained in:
KabylzhanA 2020-07-20 01:12:13 +06:00 committed by GitHub
commit 16de4e3685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
col.go
View File

@ -168,7 +168,7 @@ type NumberCol struct {
} }
func (c *NumberCol) String(wb *WorkBook) []string { func (c *NumberCol) String(wb *WorkBook) []string {
if fNo := wb.Xfs[c.Index].formatNo(); fNo != 0 { if fNo := wb.Xfs[c.Index].formatNo(); fNo != 0 && wb.Formats[fNo] != nil {
t := timeFromExcelTime(c.Float, wb.dateMode == 1) t := timeFromExcelTime(c.Float, wb.dateMode == 1)
return []string{yymmdd.Format(t, wb.Formats[fNo].str)} return []string{yymmdd.Format(t, wb.Formats[fNo].str)}
} }