Browse Source

Resolve conflict.

Geoffrey J. Teale 11 years ago
parent
commit
4be369fe32
1 changed files with 3 additions and 0 deletions
  1. 3 0
      sheet.go

+ 3 - 0
sheet.go

@@ -101,6 +101,9 @@ func (s *Sheet) makeXLSXSheet(refTable *RefTable, styles *xlsxStyleSheet) *xlsxW
 
 	worksheet.Cols = xlsxCols{Col: []xlsxCol{}}
 	for _, col := range s.Cols {
+		if col.Width == 0 {
+			col.Width = ColWidth
+		}
 		worksheet.Cols.Col = append(worksheet.Cols.Col,
 			xlsxCol{Min: col.Min,
 				Max:       col.Max,