summaryrefslogtreecommitdiff
path: root/excelize.go
diff options
context:
space:
mode:
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
}