Skip to content

Commit ccaddf2

Browse files
pjh591029530jh_peng
andauthored
Fix extractPivotTableField function panic on invalid data type reflection (qax-os#2221)
Co-authored-by: jh_peng <jh_peng@tkplusemi.com>
1 parent 5252183 commit ccaddf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pivotTable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ func extractPivotTableField(data string, fld *xlsxPivotField) PivotTableField {
983983
ShowAll: fld.ShowAll,
984984
InsertBlankRow: fld.InsertBlankRow,
985985
}
986-
setPtrFieldsVal([]string{"Compact", "Name", "Outline", "DefaultSubtotal"},
986+
setPtrFieldsVal([]string{"Compact", "Outline", "DefaultSubtotal"},
987987
reflect.ValueOf(*fld), reflect.ValueOf(&pivotTableField).Elem())
988988
return pivotTableField
989989
}

0 commit comments

Comments
 (0)