summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-03-10 23:10:15 +0800
committerRi Xu <xuri.me@gmail.com>2017-03-10 23:10:15 +0800
commit5384756d6483ba4bda294d47461c8df8b25c7a9c (patch)
tree153ffc8344e70e81d55be3268d2929179a8afd05 /styles.go
parent1f73f08185e664d6914c8eb849a9797b26067628 (diff)
- Complete the element `sheetFormatPr` struct definition;
- Partial logic performance optimization, use pointer reference instead of a pass the variable value; - Add comments for content types struct definition; - Update go test `TestSetBorder` section
Diffstat (limited to 'styles.go')
-rw-r--r--styles.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/styles.go b/styles.go
index 0ef5b74..cac92a0 100644
--- a/styles.go
+++ b/styles.go
@@ -204,12 +204,12 @@ func (f *File) setCellStyle(sheet, hcell, vcell string, styleID int) {
}
ok := f.checked[name]
if !ok {
- xlsx = checkRow(xlsx)
+ checkRow(&xlsx)
f.checked[name] = true
}
- xlsx = completeRow(xlsx, vxAxis+1, vyAxis+1)
- xlsx = completeCol(xlsx, vxAxis+1, vyAxis+1)
+ completeRow(&xlsx, vxAxis+1, vyAxis+1)
+ completeCol(&xlsx, vxAxis+1, vyAxis+1)
for r, row := range xlsx.SheetData.Row {
for k, c := range row.C {