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 --- table.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'table.go') diff --git a/table.go b/table.go index 13b1edf..de9b4aa 100644 --- a/table.go +++ b/table.go @@ -236,12 +236,10 @@ func (f *File) AutoFilter(sheet, hcell, vcell, format string) error { vxAxis := titleToNumber(vcol) if vxAxis < hxAxis { - hcell, vcell = vcell, hcell vxAxis, hxAxis = hxAxis, vxAxis } if vyAxis < hyAxis { - hcell, vcell = vcell, hcell vyAxis, hyAxis = hyAxis, vyAxis } ref := toAlphaString(hxAxis+1) + strconv.Itoa(hyAxis+1) + ":" + toAlphaString(vxAxis+1) + strconv.Itoa(vyAxis+1) -- cgit v1.2.1