Shawn Milochik 10 سال پیش
والد
کامیت
fabb3b1d82
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      sheet.go
  2. 2 2
      xmlStyle.go

+ 1 - 1
sheet.go

@@ -75,7 +75,7 @@ func (sh *Sheet) Cell(row, col int) *Cell {
 //Set the width of a single column or multipel columns.
 //Set the width of a single column or multipel columns.
 func (s *Sheet) SetColWidth(startcol, endcol int, width float64) error {
 func (s *Sheet) SetColWidth(startcol, endcol int, width float64) error {
 	if startcol > endcol {
 	if startcol > endcol {
-		return fmt.Errorf("Could not set width for range %g-%g: startcol must be less than endcol.", startcol, endcol)
+		return fmt.Errorf("Could not set width for range %d-%d: startcol must be less than endcol.", startcol, endcol)
 	}
 	}
 	col := &Col{
 	col := &Col{
 		Min:       startcol + 1,
 		Min:       startcol + 1,

+ 2 - 2
xmlStyle.go

@@ -30,8 +30,8 @@ type xlsxStyleSheet struct {
 	NumFmts      xlsxNumFmts      `xml:"numFmts,omitempty"`
 	NumFmts      xlsxNumFmts      `xml:"numFmts,omitempty"`
 
 
 	theme          *theme
 	theme          *theme
-	styleCache     map[int]*Style     // `-`
-	numFmtRefTable map[int]xlsxNumFmt `xml:"-"`
+	styleCache     map[int]*Style
+	numFmtRefTable map[int]xlsxNumFmt
 	lock           *sync.RWMutex
 	lock           *sync.RWMutex
 }
 }