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 --- pivotTable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pivotTable.go') diff --git a/pivotTable.go b/pivotTable.go index 10c48ce..73e5d34 100644 --- a/pivotTable.go +++ b/pivotTable.go @@ -190,7 +190,7 @@ func (f *File) parseFormatPivotTableSet(opt *PivotTableOption) (*xlsxWorksheet, if err != nil { return dataSheet, "", err } - pivotTableSheetPath, ok := f.sheetMap[trimSheetName(pivotTableSheetName)] + pivotTableSheetPath, ok := f.getSheetXMLPath(pivotTableSheetName) if !ok { return dataSheet, pivotTableSheetPath, fmt.Errorf("sheet %s is not exist", pivotTableSheetName) } -- cgit v1.2.1