From 88de2f8d510b0959bbb672b80656d207bd0bc927 Mon Sep 17 00:00:00 2001 From: xuri Date: Sat, 22 Aug 2020 18:58:43 +0800 Subject: Default row height compatibility with Apache OpenOffice and Kingsoft WPS, unit test update and typo fixed --- merge.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'merge.go') diff --git a/merge.go b/merge.go index b233335..7bb6d42 100644 --- a/merge.go +++ b/merge.go @@ -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 } -- cgit v1.2.1