diff options
author | xuri <xuri.me@gmail.com> | 2020-08-22 18:58:43 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-08-22 18:58:43 +0800 |
commit | 88de2f8d510b0959bbb672b80656d207bd0bc927 (patch) | |
tree | 2f7c37bffac4ecad92aaf253877667ce2348a843 /merge.go | |
parent | 3c8c8c55c8128c5bb94fe28451f58fbc5fb4a118 (diff) |
Default row height compatibility with Apache OpenOffice and Kingsoft WPS, unit test update and typo fixed
Diffstat (limited to 'merge.go')
-rw-r--r-- | merge.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -97,6 +97,7 @@ func (f *File) MergeCell(sheet, hcell, vcell string) error { } else { xlsx.MergeCells = &xlsxMergeCells{Cells: []*xlsxMergeCell{{Ref: ref}}} } + xlsx.MergeCells.Count = len(xlsx.MergeCells.Cells) return err } @@ -146,6 +147,7 @@ func (f *File) UnmergeCell(sheet string, hcell, vcell string) error { i++ } xlsx.MergeCells.Cells = xlsx.MergeCells.Cells[:i] + xlsx.MergeCells.Count = len(xlsx.MergeCells.Cells) return nil } |