21
0

6) Fixed bug on Row.LastCol() when data is actually present but Row.info.Lcell=0 (ms excel shows the data)

This commit is contained in:
Ivan 2019-03-17 22:42:58 +03:00
parent 6a276445b2
commit 0698fa2730

View File

@ -213,6 +213,9 @@ func (w *WorkSheet) addContent(row_num uint16, ch contentHandler) {
info.Index = row_num info.Index = row_num
row = w.addRow(info) row = w.addRow(info)
} }
if row.info.Lcell < ch.LastCol() {
row.info.Lcell = ch.LastCol()
}
row.cols[ch.FirstCol()] = ch row.cols[ch.FirstCol()] = ch
} }