diff options
| author | Ri Xu <xuri.me@gmail.com> | 2017-03-10 23:10:15 +0800 |
|---|---|---|
| committer | Ri Xu <xuri.me@gmail.com> | 2017-03-10 23:10:15 +0800 |
| commit | 5384756d6483ba4bda294d47461c8df8b25c7a9c (patch) | |
| tree | 153ffc8344e70e81d55be3268d2929179a8afd05 /styles.go | |
| parent | 1f73f08185e664d6914c8eb849a9797b26067628 (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.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 { |
