From ebea684ae5c60776d4d8364b7360d0c0603cb3b0 Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 18 Jul 2022 00:21:34 +0800 Subject: Fix potential file corrupted and change worksheet name case-insensitive - Using sheet ID instead of sheet index when delete the cell in calculation chain - Update documentation for exported functions - Using `sheet` represent the sheet name in the function parameters --- excelize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'excelize.go') diff --git a/excelize.go b/excelize.go index da51b13..6603db0 100644 --- a/excelize.go +++ b/excelize.go @@ -230,7 +230,7 @@ func (f *File) workSheetReader(sheet string) (ws *xlsxWorksheet, err error) { name string ok bool ) - if name, ok = f.sheetMap[trimSheetName(sheet)]; !ok { + if name, ok = f.getSheetXMLPath(sheet); !ok { err = fmt.Errorf("sheet %s is not exist", sheet) return } -- cgit v1.2.1