summaryrefslogtreecommitdiff
path: root/styles.go
diff options
context:
space:
mode:
Diffstat (limited to 'styles.go')
-rw-r--r--styles.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/styles.go b/styles.go
index bbb21dc..15de5f1 100644
--- a/styles.go
+++ b/styles.go
@@ -2164,6 +2164,10 @@ func newFontColor(font *Font) *xlsxColor {
prepareFontColor()
fontColor.RGB = getPaletteColor(font.Color)
}
+ if font.ColorIndexed >= 0 && font.ColorIndexed <= len(IndexedColorMapping)+1 {
+ prepareFontColor()
+ fontColor.Indexed = font.ColorIndexed
+ }
if font.ColorTheme != nil {
prepareFontColor()
fontColor.Theme = font.ColorTheme