summaryrefslogtreecommitdiff
path: root/excelize.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-08-22 13:36:56 +0800
committerxuri <xuri.me@gmail.com>2021-08-22 13:36:56 +0800
commita2d449708cf72928394b4bc4aea41c0c6a606fa2 (patch)
tree3107f4d43971e0c10c7946a7644c2d3b3626cd2b /excelize.go
parent9b55f4f9f0b839934eb8113d2092c60a1a5b64b8 (diff)
- This fix panic and incorrect cell read on some case
- Make unit test on Go 1.7 - API documentation updated
Diffstat (limited to 'excelize.go')
-rw-r--r--excelize.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/excelize.go b/excelize.go
index fafa57f..6e4e4d9 100644
--- a/excelize.go
+++ b/excelize.go
@@ -238,7 +238,7 @@ func checkSheet(ws *xlsxWorksheet) {
sheetData := xlsxSheetData{Row: make([]xlsxRow, row)}
row = 0
for _, r := range ws.SheetData.Row {
- if r.R == row {
+ if r.R == row && row > 0 {
sheetData.Row[r.R-1].C = append(sheetData.Row[r.R-1].C, r.C...)
continue
}