Geoffrey Teale 12 years ago
parent
commit
bb321ebafe
2 changed files with 2 additions and 2 deletions
  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
 			}
 		}
-		rows[rawrow.R - 1] = row
+		rows[rawrow.R-1] = row
 	}
 	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
 // as I need.
 type xlsxRow struct {
-	R     int  `xml:"r,attr"`
+	R     int     `xml:"r,attr"`
 	Spans string  `xml:"spans,attr"`
 	C     []xlsxC `xml:"c"`
 }