diff --git a/merge.go b/merge.go index ec7815f..c50eaa3 100644 --- a/merge.go +++ b/merge.go @@ -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 }