From efff54ccde5b7f0a62bccbeab557e23e5e89970b Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Mon, 12 Jun 2017 18:05:09 +0800 Subject: - Fixed coordinate parse error in function `SetCellStyle()`, relate issue #60; - Simplified code --- styles.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'styles.go') diff --git a/styles.go b/styles.go index cc57e36..2c4c5af 100644 --- a/styles.go +++ b/styles.go @@ -776,8 +776,8 @@ func (f *File) setCellStyle(sheet, hcell, vcell string, styleID int) { xlsx := f.workSheetReader(sheet) - completeRow(xlsx, vxAxis+1, vyAxis+1) - completeCol(xlsx, vxAxis+1, vyAxis+1) + completeRow(xlsx, vyAxis+1, vxAxis+1) + completeCol(xlsx, vyAxis+1, vxAxis+1) for r, row := range xlsx.SheetData.Row { for k, c := range row.C { -- cgit v1.2.1