diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-04-30 20:03:43 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-04-30 20:03:43 +0800 |
commit | 7f30a6c9430476bcd5fc1662523ada0e95f60947 (patch) | |
tree | 80d4341e95a80aedae3076c87b90447a881b32c8 /table.go | |
parent | 46b8c46d91be522c3dff1044a23810ecb1a81c96 (diff) |
- Initialize shape support: new function `AddShape()` added. Relate issue #38;
- Drawing `nvPicPr` element ID property calculation changed;
- go test updated
Diffstat (limited to 'table.go')
-rw-r--r-- | table.go | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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" { |