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 --- rows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rows.go') diff --git a/rows.go b/rows.go index 75ee7a2..ad33a36 100644 --- a/rows.go +++ b/rows.go @@ -112,7 +112,7 @@ func (f *File) SetRowHeight(sheet string, rowIndex int, height float64) { rows := rowIndex + 1 cells := 0 - xlsx = completeRow(xlsx, rows, cells) + completeRow(&xlsx, rows, cells) xlsx.SheetData.Row[rowIndex].Ht = strconv.FormatFloat(height, 'f', -1, 64) xlsx.SheetData.Row[rowIndex].CustomHeight = true -- cgit v1.2.1