Browse Source

merge maybeaddcol

rentiansheng 7 years ago
parent
commit
1f159929c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sheet.go

+ 1 - 1
sheet.go

@@ -60,7 +60,7 @@ func (s *Sheet) AddRow() *Row {
 func (s *Sheet) maybeAddCol(cellCount int) {
 	if cellCount > s.MaxCol {
 		loopCnt := cellCount - s.MaxCol
-		currIndex := s.MaxCol
+		currIndex := s.MaxCol + 1
 		for i := 0; i < loopCnt; i++ {
 
 			col := &Col{