فهرست منبع

Prevent cells from being clobbered in worksheets without an initial column

Brian Smith 10 سال پیش
والد
کامیت
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.
 			// from the data.
 			for x > insertColIndex {
 			for x > insertColIndex {
 				// Put an empty Cell into the array
 				// Put an empty Cell into the array
-				row.Cells[insertColIndex-minCol] = new(Cell)
+				row.Cells[insertColIndex] = new(Cell)
 				insertColIndex++
 				insertColIndex++
 			}
 			}
 			cellX := insertColIndex
 			cellX := insertColIndex