Explorar el Código

Merge branch 'missionMeteora-master'

Geoffrey J. Teale hace 11 años
padre
commit
05a6487de1
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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{}}
 	worksheet.Cols = xlsxCols{Col: []xlsxCol{}}
 	for _, col := range s.Cols {
 	for _, col := range s.Cols {
+		if col.Width == 0 {
+			col.Width = ColWidth
+		}
 		worksheet.Cols.Col = append(worksheet.Cols.Col,
 		worksheet.Cols.Col = append(worksheet.Cols.Col,
 			xlsxCol{Min: col.Min,
 			xlsxCol{Min: col.Min,
 				Max:       col.Max,
 				Max:       col.Max,