summaryrefslogtreecommitdiff
path: root/pivotTable.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-11-16 00:40:44 +0800
committerxuri <xuri.me@gmail.com>2021-11-16 00:40:44 +0800
commitbda8e7f8129dae0064c47f8e051f76492e1128f5 (patch)
treef920fccbda3059acdf0c0cb66ebb875161a32576 /pivotTable.go
parent72410361b07e7539037252467a38a73b32986dce (diff)
This closes #1061, support multi-byte language on set header footer
typo fixed and simplify code for read the data values arguments of formula functions
Diffstat (limited to 'pivotTable.go')
-rw-r--r--pivotTable.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pivotTable.go b/pivotTable.go
index 6ce0173..270ee99 100644
--- a/pivotTable.go
+++ b/pivotTable.go
@@ -662,8 +662,8 @@ func (f *File) getPivotTableFieldsSubtotal(fields []PivotTableField) []string {
func (f *File) getPivotTableFieldsName(fields []PivotTableField) []string {
field := make([]string, len(fields))
for idx, fld := range fields {
- if len(fld.Name) > 255 {
- field[idx] = fld.Name[0:255]
+ if len(fld.Name) > MaxFieldLength {
+ field[idx] = fld.Name[:MaxFieldLength]
continue
}
field[idx] = fld.Name