From 6dc135a992f1155c581a98fca6460dad54766532 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Sat, 6 Jan 2018 08:05:43 +0800 Subject: [PATCH] Fix read columns count wrong in specific xlsx data, relate issue #175 --- rows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rows.go b/rows.go index 56ac734..a6b0738 100644 --- a/rows.go +++ b/rows.go @@ -277,7 +277,7 @@ func checkRow(xlsx *xlsxWorksheet) { oldRow := xlsx.SheetData.Row[k].C xlsx.SheetData.Row[k].C = xlsx.SheetData.Row[k].C[:0] tmp := []xlsxC{} - for i := 0; i <= endCol; i++ { + for i := 0; i < endCol; i++ { buffer.WriteString(ToAlphaString(i)) buffer.WriteString(strconv.Itoa(endRow)) tmp = append(tmp, xlsxC{