Просмотр исходного кода

Prevent cells from being clobbered in worksheets without an initial column

Brian Smith 10 лет назад
Родитель
Сommit
c969d7fd0c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib.go

+ 1 - 1
lib.go

@@ -494,7 +494,7 @@ func readRowsFromSheet(Worksheet *xlsxWorksheet, file *File) ([]*Row, []*Col, in
 			// from the data.
 			for x > insertColIndex {
 				// Put an empty Cell into the array
-				row.Cells[insertColIndex-minCol] = new(Cell)
+				row.Cells[insertColIndex] = new(Cell)
 				insertColIndex++
 			}
 			cellX := insertColIndex