Skip to content

Commit

Permalink
Merge pull request #796 from martianwei/fix_addNumfmt
Browse files Browse the repository at this point in the history
fix: addNumfmt
  • Loading branch information
tealeg authored Feb 1, 2024
2 parents 1f3b461 + 8c35cca commit 2040ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmlStyle.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func (styles *xlsxStyleSheet) newNumFmt(formatCode string) xlsxNumFmt {
// addNumFmt add xlsxNumFmt if its not exist.
func (styles *xlsxStyleSheet) addNumFmt(xNumFmt xlsxNumFmt) {
// don't add built in NumFmt
if xNumFmt.NumFmtId <= builtinNumFmtsCount {
if _, ok := builtInNumFmt[xNumFmt.NumFmtId]; ok {
return
}
styles.numFmtRefTableMU.RLock()
Expand Down

0 comments on commit 2040ee8

Please sign in to comment.