From 0698fa273034a56b3bce78a072f81801b7b2d40a Mon Sep 17 00:00:00 2001 From: Ivan Date: Sun, 17 Mar 2019 22:42:58 +0300 Subject: [PATCH] 6) Fixed bug on Row.LastCol() when data is actually present but Row.info.Lcell=0 (ms excel shows the data) --- worksheet.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worksheet.go b/worksheet.go index af549ec..ef51f28 100644 --- a/worksheet.go +++ b/worksheet.go @@ -213,6 +213,9 @@ func (w *WorkSheet) addContent(row_num uint16, ch contentHandler) { info.Index = row_num row = w.addRow(info) } + if row.info.Lcell < ch.LastCol() { + row.info.Lcell = ch.LastCol() + } row.cols[ch.FirstCol()] = ch }