diff options
author | xuri <xuri.me@gmail.com> | 2022-04-28 15:33:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 15:33:25 +0800 |
commit | df91b34a3f816a865ba6f9ea7707c668552df9d6 (patch) | |
tree | 95d2dad45d9f94d86de7e414741335b699ea9f11 /styles.go | |
parent | 0f7a0c8f3b5c9abd5858cab80902296d1639625f (diff) |
This closes #1211, improve the compatibility with invalid internal styles count
Diffstat (limited to 'styles.go')
-rw-r--r-- | styles.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2443,7 +2443,7 @@ func setCellXfs(style *xlsxStyleSheet, fontID, numFmtID, fillID, borderID int, a if borderID != 0 { xf.ApplyBorder = boolPtr(true) } - style.CellXfs.Count++ + style.CellXfs.Count = len(style.CellXfs.Xf) + 1 xf.Alignment = alignment if alignment != nil { xf.ApplyAlignment = boolPtr(applyAlignment) |