This commit is contained in:
Liu Ming
2017-02-21 16:27:01 +08:00
parent 1127e94c69
commit f02a04cbdd
6 changed files with 68 additions and 32 deletions

View File

@@ -277,10 +277,10 @@ func (w *WorkBook) ReadAllCells(max int) (res [][]string) {
leng = max
}
temp := make([][]string, leng)
for k, row := range sheet.Rows {
for k, row := range sheet.rows {
data := make([]string, 0)
if len(row.Cols) > 0 {
for _, col := range row.Cols {
if len(row.cols) > 0 {
for _, col := range row.cols {
if uint16(len(data)) <= col.LastCol() {
data = append(data, make([]string, col.LastCol()-uint16(len(data))+1)...)
}