From 24de6e2eccad2a4cca8c2052c4415dc428d168ef Mon Sep 17 00:00:00 2001 From: KabylzhanA <43058249+KabylzhanA@users.noreply.github.com> Date: Mon, 20 Jul 2020 01:06:54 +0600 Subject: [PATCH] Update col.go check to nil --- col.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/col.go b/col.go index 8636566..a6d1133 100644 --- a/col.go +++ b/col.go @@ -168,7 +168,7 @@ type NumberCol struct { } 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) return []string{yymmdd.Format(t, wb.Formats[fNo].str)} }