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 /cell.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 'cell.go')
-rw-r--r-- | cell.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -111,7 +111,7 @@ func (f *File) SetCellFormula(sheet, axis, formula string) { } ok := f.checked[name] if !ok { - xlsx = checkRow(xlsx) + checkRow(&xlsx) f.checked[name] = true } if xlsx.MergeCells != nil { @@ -129,8 +129,8 @@ func (f *File) SetCellFormula(sheet, axis, formula string) { rows := xAxis + 1 cell := yAxis + 1 - xlsx = completeRow(xlsx, rows, cell) - xlsx = completeCol(xlsx, rows, cell) + completeRow(&xlsx, rows, cell) + completeCol(&xlsx, rows, cell) if xlsx.SheetData.Row[xAxis].C[yAxis].F != nil { xlsx.SheetData.Row[xAxis].C[yAxis].F.Content = formula @@ -156,7 +156,7 @@ func (f *File) SetCellHyperLink(sheet, axis, link string) { } ok := f.checked[name] if !ok { - xlsx = checkRow(xlsx) + checkRow(&xlsx) f.checked[name] = true } if xlsx.MergeCells != nil { @@ -226,7 +226,7 @@ func (f *File) MergeCell(sheet, hcell, vcell string) { } ok := f.checked[name] if !ok { - xlsx = checkRow(xlsx) + checkRow(&xlsx) f.checked[name] = true } if xlsx.MergeCells != nil { |