From 7f30a6c9430476bcd5fc1662523ada0e95f60947 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Sun, 30 Apr 2017 20:03:43 +0800 Subject: - Initialize shape support: new function `AddShape()` added. Relate issue #38; - Drawing `nvPicPr` element ID property calculation changed; - go test updated --- table.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'table.go') diff --git a/table.go b/table.go index d472ea0..ce467fc 100644 --- a/table.go +++ b/table.go @@ -52,11 +52,9 @@ func (f *File) AddTable(sheet, hcell, vcell, format string) { vyAxis := vrow - 1 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 } tableID := f.countTables() + 1 @@ -156,7 +154,6 @@ func (f *File) addTable(sheet, tableXML string, hxAxis, hyAxis, vxAxis, vyAxis, // addTableContentTypePart provides function to add image part relationships // in the file [Content_Types].xml by given drawing index. func (f *File) addTableContentTypePart(index int) { - f.setContentTypePartImageExtensions() content := f.contentTypesReader() for _, v := range content.Overrides { if v.PartName == "/xl/tables/table"+strconv.Itoa(index)+".xml" { -- cgit v1.2.1