From 40ed1d1b81b4d30165bb73e9406e59ddbdb76fe2 Mon Sep 17 00:00:00 2001 From: xuri Date: Sat, 16 Jul 2022 12:50:13 +0800 Subject: Fix potential file corrupted when changing cell value or the col/row - Remove shared formula subsequent cell when setting the cell values - Support adjust table range when removing and inserting column/row --- sheet.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sheet.go') diff --git a/sheet.go b/sheet.go index 2a722c9..6dda811 100644 --- a/sheet.go +++ b/sheet.go @@ -478,12 +478,11 @@ func (f *File) SetSheetBackground(sheet, picture string) error { } // DeleteSheet provides a function to delete worksheet in a workbook by given -// worksheet name, the sheet names are not case-sensitive. The sheet names are -// not case-sensitive. Use this method with caution, which will affect -// changes in references such as formulas, charts, and so on. If there is any -// referenced value of the deleted worksheet, it will cause a file error when -// you open it. This function will be invalid when only the one worksheet is -// left. +// worksheet name, the sheet names are not case-sensitive. Use this method +// with caution, which will affect changes in references such as formulas, +// charts, and so on. If there is any referenced value of the deleted +// worksheet, it will cause a file error when you open it. This function will +// be invalid when only one worksheet is left func (f *File) DeleteSheet(name string) { if f.SheetCount == 1 || f.GetSheetIndex(name) == -1 { return -- cgit v1.2.1