1
0
mirror of https://github.com/pbnjay/grate.git synced 2024-12-12 13:35:18 +02:00

allocate at least one cell on an empty sheet

This commit is contained in:
Jeremy Jay 2021-02-15 00:13:21 -05:00
parent aa7cdf285d
commit dbc4d374ba

View File

@ -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