|
|
@@ -209,7 +209,6 @@ func (s *Sheet) makeXLSXSheet(refTable *RefTable, styles *xlsxStyleSheet) *xlsxW
|
|
|
worksheet.SheetFormatPr.DefaultColWidth = s.SheetFormat.DefaultColWidth
|
|
|
|
|
|
colsXfIdList := make([]int, len(s.Cols))
|
|
|
- worksheet.Cols = &xlsxCols{Col: []xlsxCol{}}
|
|
|
for c, col := range s.Cols {
|
|
|
XfId := 0
|
|
|
if col.Min == 0 {
|
|
|
@@ -234,6 +233,9 @@ func (s *Sheet) makeXLSXSheet(refTable *RefTable, styles *xlsxStyleSheet) *xlsxW
|
|
|
} else {
|
|
|
customWidth = true
|
|
|
}
|
|
|
+ if worksheet.Cols == nil {
|
|
|
+ worksheet.Cols = &xlsxCols{Col: []xlsxCol{}}
|
|
|
+ }
|
|
|
worksheet.Cols.Col = append(worksheet.Cols.Col,
|
|
|
xlsxCol{Min: col.Min,
|
|
|
Max: col.Max,
|