summaryrefslogtreecommitdiff
path: root/excelize.go
diff options
context:
space:
mode:
Diffstat (limited to 'excelize.go')
-rw-r--r--excelize.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/excelize.go b/excelize.go
index 5069756..bcae481 100644
--- a/excelize.go
+++ b/excelize.go
@@ -219,11 +219,17 @@ func checkSheet(ws *xlsxWorksheet) {
row = r.R
continue
}
- row++
+ if r.R != row {
+ row++
+ }
}
sheetData := xlsxSheetData{Row: make([]xlsxRow, row)}
row = 0
for _, r := range ws.SheetData.Row {
+ if r.R == row {
+ sheetData.Row[r.R-1].C = append(sheetData.Row[r.R-1].C, r.C...)
+ continue
+ }
if r.R != 0 {
sheetData.Row[r.R-1] = r
row = r.R