|
|
@@ -186,9 +186,10 @@ func (styles *xlsxStyleSheet) getNumberFormat(styleIndex int) string {
|
|
|
var numberFormat string = ""
|
|
|
if styleIndex > -1 && styleIndex <= styles.CellXfs.Count {
|
|
|
xf := styles.CellXfs.Xf[styleIndex]
|
|
|
- if xf.NumFmtId < 164 {
|
|
|
- return getBuiltinNumberFormat(xf.NumFmtId)
|
|
|
- } else if styles.numFmtRefTable != nil {
|
|
|
+ if builtin := getBuiltinNumberFormat(xf.NumFmtId); builtin != "" {
|
|
|
+ return builtin
|
|
|
+ }
|
|
|
+ if styles.numFmtRefTable != nil {
|
|
|
numFmt := styles.numFmtRefTable[xf.NumFmtId]
|
|
|
numberFormat = numFmt.FormatCode
|
|
|
}
|