-
Notifications
You must be signed in to change notification settings - Fork 48
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
Localisation Based NumberFormatException on getWidth #332
Comments
@AndreasTAK, is there any chance of getting a patch from you, Andreas? It would be most welcome! 🤗 |
@svanteschubert so I looked into it and the issue originally stems from the createTable() method. To define the |
@AndreasTAK Many thanks, Andreas for the patch.
Honestly, as I am uncertain how to edit your patch, may I ask if you add a test (as you described above) in TableCellTest.java and apply a similar test & patch to OdfTableCell.java? ;-) I believe the internal XML version is all the same in ODF and just the GUI of Calc shows different localized separators, therefore your patch seems quite correct to me - I have asked Michael Stahl as well, but he might be on vacation (the only thing that might delay this here a bit) :-) Thanks in advance, Andreas! |
@svanteschubert I have added a test to demostrate my fix works with german locale. Greetings from Vienna, Austria👋 |
@AndreasTAK @mistmist |
@svanteschubert Fantastic. Thanks for the quick review and SNAPSHOT release. I'll keep my eyes open for any other issues I might find |
Depending on Locale OdfTableColumn.getWidth() produces a NumberFormatException.
Steps to reproduce
will lead to:
The text was updated successfully, but these errors were encountered: