This fixes #756, made stream writer skip set cell value when got nil (#1481)

This commit is contained in:
Baris Mar Aziz 2023-02-23 23:18:10 +07:00 committed by GitHub
parent 94e86dca31
commit 669c432ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ func (sw *StreamWriter) setCellValFunc(c *xlsxC, val interface{}) error {
case bool:
c.T, c.V = setCellBool(val)
case nil:
c.setCellValue("")
return err
case []RichTextRun:
c.T, c.IS = "inlineStr", &xlsxSI{}
c.IS.R, err = setRichText(val)