mirror of
https://github.com/pbnjay/grate.git
synced 2026-05-16 17:16:40 +02:00
backup when dimensions not set
This commit is contained in:
+5
-7
@@ -94,13 +94,11 @@ func (s *WorkSheet) placeValue(rowIndex, colIndex int, val interface{}) {
|
||||
// invalid
|
||||
return
|
||||
}
|
||||
/*
|
||||
// ensure we always have a complete matrix
|
||||
for len(s.rows) <= rowIndex {
|
||||
emptyRow := make([]interface{}, s.maxCol+1)
|
||||
s.rows = append(s.rows, &row{emptyRow})
|
||||
}
|
||||
*/
|
||||
// ensure we always have a complete matrix
|
||||
for len(s.rows) <= rowIndex {
|
||||
emptyRow := make([]interface{}, s.maxCol+1)
|
||||
s.rows = append(s.rows, &row{emptyRow})
|
||||
}
|
||||
|
||||
s.rows[rowIndex].cols[colIndex] = val
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user