summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-10-28 00:31:55 +0800
committerxuri <xuri.me@gmail.com>2022-10-28 00:31:55 +0800
commita410b22bdd50e9f212b0b454e5aed798e3476394 (patch)
treed8b234f1171f4c0222d09182dc9ed8e7e3ace658 /rows.go
parentadf9d37d82edd3dbc365fece76a031a92e2220d6 (diff)
Fix the error on getting the range of merged cells on the worksheet which contains one cell merged cell range
- Parse workbook default theme for custom theme color support in the feature - Variables name typo fix - Add system foreground and background color as RGB in the IndexedColorMapping list
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/rows.go b/rows.go
index 4f05f24..5b21f29 100644
--- a/rows.go
+++ b/rows.go
@@ -744,8 +744,8 @@ func checkRow(ws *xlsxWorksheet) error {
}
if colCount < lastCol {
- oldList := rowData.C
- newList := make([]xlsxC, 0, lastCol)
+ sourceList := rowData.C
+ targetList := make([]xlsxC, 0, lastCol)
rowData.C = ws.SheetData.Row[rowIdx].C[:0]
@@ -754,13 +754,13 @@ func checkRow(ws *xlsxWorksheet) error {
if err != nil {
return err
}
- newList = append(newList, xlsxC{R: cellName})
+ targetList = append(targetList, xlsxC{R: cellName})
}
- rowData.C = newList
+ rowData.C = targetList
- for colIdx := range oldList {
- colData := &oldList[colIdx]
+ for colIdx := range sourceList {
+ colData := &sourceList[colIdx]
colNum, _, err := CellNameToCoordinates(colData.R)
if err != nil {
return err