summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-08-07 10:42:10 +0800
committerRi Xu <xuri.me@gmail.com>2017-08-07 10:42:10 +0800
commit5cf3725f026d2a1dbf3208d575ade996cfd7e7ec (patch)
tree89dbfb3b9d580109654fa9728e9b46f8729040d5 /styles.go
parent6626a26f7baca10773f4066de47a811a8a89d236 (diff)
Add missing element `xfId` of the styles to fix issue #93.
Diffstat (limited to 'styles.go')
-rw-r--r--styles.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/styles.go b/styles.go
index 2e440c2..b359313 100644
--- a/styles.go
+++ b/styles.go
@@ -2122,6 +2122,8 @@ func setCellXfs(style *xlsxStyleSheet, fontID, numFmtID, fillID, borderID int, a
style.CellXfs.Count++
xf.Alignment = alignment
xf.ApplyAlignment = applyAlignment
+ xfID := 0
+ xf.XfID = &xfID
style.CellXfs.Xf = append(style.CellXfs.Xf, xf)
return style.CellXfs.Count - 1
}