diff options
-rw-r--r-- | merge.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -148,6 +148,9 @@ func (f *File) UnmergeCell(sheet string, hcell, vcell string) error { } ws.MergeCells.Cells = ws.MergeCells.Cells[:i] ws.MergeCells.Count = len(ws.MergeCells.Cells) + if ws.MergeCells.Count == 0 { + ws.MergeCells = nil + } return nil } |