summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-12-11 00:02:33 +0800
committerxuri <xuri.me@gmail.com>2019-12-11 00:02:33 +0800
commit5d8365ca17240f5b144d437a7b47052f22c4f3c6 (patch)
treeafe24909b91d065bc34cb9a44696098ff99d81f3 /rows.go
parent08d1a86c3a1bffdf431dba6a3d5a3b369ef740a7 (diff)
Fix #529, handle empty inline rich text
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/rows.go b/rows.go
index 69a9846..ff4aa0f 100644
--- a/rows.go
+++ b/rows.go
@@ -279,7 +279,10 @@ func (xlsx *xlsxC) getValueFrom(f *File, d *xlsxSST) (string, error) {
case "str":
return f.formattedValue(xlsx.S, xlsx.V), nil
case "inlineStr":
- return f.formattedValue(xlsx.S, xlsx.IS.String()), nil
+ if xlsx.IS != nil {
+ return f.formattedValue(xlsx.S, xlsx.IS.String()), nil
+ }
+ return f.formattedValue(xlsx.S, xlsx.V), nil
default:
return f.formattedValue(xlsx.S, xlsx.V), nil
}