Skip to content

Commit

Permalink
Fix index error when no column is defined that overlaps the cell defi…
Browse files Browse the repository at this point in the history
…nition.
  • Loading branch information
Geoffrey Teale committed Nov 23, 2014
1 parent 8502841 commit d6607c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.go
Expand Up @@ -409,7 +409,7 @@ func readRowsFromSheet(Worksheet *xlsxWorksheet, file *File) ([]*Row, []*Col, in
row.Cells[cellX].numFmt = file.styles.getNumberFormat(rawcell.S, file.numFmtRefTable)
}
row.Cells[cellX].date1904 = file.Date1904
row.Cells[cellX].Hidden = rawrow.Hidden || cols[cellX].Hidden
row.Cells[cellX].Hidden = rawrow.Hidden || (len(cols) > cellX && cols[cellX].Hidden)
insertColIndex++
}
if len(rows) > insertRowIndex-minRow {
Expand Down

0 comments on commit d6607c5

Please sign in to comment.