mirror of
https://github.com/pbnjay/grate.git
synced 2024-12-14 22:16:25 +02:00
allocate at least one cell on an empty sheet
This commit is contained in:
parent
aa7cdf285d
commit
dbc4d374ba
@ -155,11 +155,9 @@ func (s *WorkSheet) parse() error {
|
|||||||
s.maxCol = int(uint64(maxCol)&0x001FF) - 1 // translate to last valid index
|
s.maxCol = int(uint64(maxCol)&0x001FF) - 1 // translate to last valid index
|
||||||
if (maxRow-minRow) == 0 || (maxCol-minCol) == 0 {
|
if (maxRow-minRow) == 0 || (maxCol-minCol) == 0 {
|
||||||
s.empty = true
|
s.empty = true
|
||||||
} else {
|
}
|
||||||
// pre-allocate cells
|
// pre-allocate cells
|
||||||
s.makeCells()
|
s.makeCells()
|
||||||
//s.placeValue(s.maxRow, s.maxCol, nil)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
inSubstream = 0
|
inSubstream = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user