Geoffrey J. Teale 12 年之前
父節點
當前提交
79e870b623
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      lib.go
  2. 1 1
      worksheet.go

+ 1 - 1
lib.go

@@ -337,7 +337,7 @@ func readRowsFromSheet(Worksheet *xlsxWorksheet, file *File) ([]*Row, int, int)
 				row.Cells[x].styles = file.styles
 				row.Cells[x].styles = file.styles
 			}
 			}
 		}
 		}
-		rows[rawrow.R - 1] = row
+		rows[rawrow.R-1] = row
 	}
 	}
 	return rows, colCount, rowCount
 	return rows, colCount, rowCount
 }
 }

+ 1 - 1
worksheet.go

@@ -30,7 +30,7 @@ type xlsxSheetData struct {
 // currently I have not checked it for completeness - it does as much
 // currently I have not checked it for completeness - it does as much
 // as I need.
 // as I need.
 type xlsxRow struct {
 type xlsxRow struct {
-	R     int  `xml:"r,attr"`
+	R     int     `xml:"r,attr"`
 	Spans string  `xml:"spans,attr"`
 	Spans string  `xml:"spans,attr"`
 	C     []xlsxC `xml:"c"`
 	C     []xlsxC `xml:"c"`
 }
 }