diff options
author | Benjamin Titmus <Benjamin.Titmus@arm.com> | 2020-11-13 21:24:20 +0000 |
---|---|---|
committer | Benjamin Titmus <Benjamin.Titmus@arm.com> | 2020-11-13 21:24:20 +0000 |
commit | 3806c6b10abf130d1c06e2d0fb99e9f319986f55 (patch) | |
tree | 44efba753feb50fde1c5425dec0730c394ba880a /src/xlsx.c | |
parent | bdd936a12c68f74419e3307760439335e1b18133 (diff) |
Add italic option to colors
Diffstat (limited to 'src/xlsx.c')
-rw-r--r-- | src/xlsx.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -573,9 +573,11 @@ int export_xlsx(char * filename, int r0, int c0, int rn, int cn) { else if ((*pp)->label) // right align format_set_align(format, LXW_ALIGN_RIGHT); - // handle bold and underline + // handle bold, italic and underline if ((*pp)->ucolor != NULL && (*pp)->ucolor->bold) format_set_bold(format); + else if ((*pp)->ucolor != NULL && (*pp)->ucolor->italic) + format_set_italic(format); else if ((*pp)->ucolor != NULL && (*pp)->ucolor->underline) format_set_underline(format, LXW_UNDERLINE_SINGLE); |