From 5384756d6483ba4bda294d47461c8df8b25c7a9c Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Fri, 10 Mar 2017 23:10:15 +0800 Subject: - 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 --- styles.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'styles.go') 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 { -- cgit v1.2.1