Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addNumfmt() in xmlStyle.go seems to be wrong #794

Closed
martianwei opened this issue Jan 25, 2024 · 1 comment
Closed

addNumfmt() in xmlStyle.go seems to be wrong #794

martianwei opened this issue Jan 25, 2024 · 1 comment

Comments

@martianwei
Copy link
Contributor

The addNumfmt function verifies whether xNumFmt.NumFmtId is less than or equal to builtinNumFmtsCount. If this condition is met, the function will not add it.

螢幕擷取畫面 2024-01-25 135947

However, since my numFmtId is 8, this function prevents me from retrieving the correct NumFmt for my cell.

螢幕擷取畫面 2024-01-25 140625

I believe it would be more effective to check if xNumFmt.NumFmtId is included in builtInNumFmt

螢幕擷取畫面 2024-01-25 140913

Could Anyone help me fix it?

Number_Currency.xlsx

@tealeg
Copy link
Owner

tealeg commented Feb 1, 2024

Fixed by #796.

@tealeg tealeg closed this as completed Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants