From dbc4d374bad753b7ba789cd0e6f3771a55d0fd05 Mon Sep 17 00:00:00 2001 From: Jeremy Jay Date: Mon, 15 Feb 2021 00:13:21 -0500 Subject: [PATCH] allocate at least one cell on an empty sheet --- xls/sheets.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xls/sheets.go b/xls/sheets.go index 242ff68..ee22dde 100644 --- a/xls/sheets.go +++ b/xls/sheets.go @@ -155,11 +155,9 @@ func (s *WorkSheet) parse() error { s.maxCol = int(uint64(maxCol)&0x001FF) - 1 // translate to last valid index if (maxRow-minRow) == 0 || (maxCol-minCol) == 0 { s.empty = true - } else { - // pre-allocate cells - s.makeCells() - //s.placeValue(s.maxRow, s.maxCol, nil) } + // pre-allocate cells + s.makeCells() } } inSubstream = 0