Open andreas-mausch opened 1 year ago
Hi. Thanks for reporting. I'll have a look... next year.
A bit late, but:
Now, implicit data styles (for types) may be null:
FloatDataStyle
implcit data style is null by default, thus no implicit data style is present for floats (in line with #217) OdsFactoryBuilder.dataStyles(...)
), the FloatDataStyle
implicit data style may or may not be null.
Hi,
I tried to create a .ods file based on the example https://github.com/jferard/fastods/blob/master/fastods-examples/src/main/java/com/github/jferard/fastods/examples/D_SettingTheCellDataStyle.java
I modified it a bit, so I am not 100% sure if I made a mistake or if it's a bug.
However, I tried to use a global style for all floating numbers, but it is not applied. Note: If I set the floatStyle on the cell directly (last value, 1005.123), it works! The global date style works also.
Tested with com.github.jferard:fastods:0.8.1 and LibreOffice 7.4.3
Did I miss something, or is it a bug?
Edit: After looking at the source code I found this https://github.com/jferard/fastods/blob/4a3d5e1cde08a95612727a2677d15b0c547188b3/fastods/src/main/java/com/github/jferard/fastods/TableCellImpl.java#L308
and this https://github.com/jferard/fastods/commit/7e84c8bfb3e126f8c99e222f87aed241e278d065
and it seems to be related to #217 and is intended I guess? Is there a way to enable the implicit styling for floats?