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 }