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

formula
xuri 4 years ago
parent 23c73ab527
commit 3783d1d01b
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7

@ -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
}

Loading…
Cancel
Save