已验证 提交 3783d1d0 编写于 作者: xurime's avatar xurime

This closes #782, fix unmerge all cells cause corrupted file

上级 23c73ab5
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册