ODS writer prevent invalid numeric value if locale decimal separator is comma

Closes #1268
This commit is contained in:
milkyway 2019-11-26 11:21:01 +01:00 committed by Adrien Crivelli
parent ad37da8a5d
commit d61855effe
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
- Correct column style even when using rowspan [#1249](https://github.com/PHPOffice/PhpSpreadsheet/pull/1249) - Correct column style even when using rowspan [#1249](https://github.com/PHPOffice/PhpSpreadsheet/pull/1249)
- Do not confuse defined names and cell refs [#1263](https://github.com/PHPOffice/PhpSpreadsheet/pull/1263) - Do not confuse defined names and cell refs [#1263](https://github.com/PHPOffice/PhpSpreadsheet/pull/1263)
- XLSX reader/writer keep decimal for floats with a zero decimal part [#1262](https://github.com/PHPOffice/PhpSpreadsheet/pull/1262) - XLSX reader/writer keep decimal for floats with a zero decimal part [#1262](https://github.com/PHPOffice/PhpSpreadsheet/pull/1262)
- ODS writer prevent invalid numeric value if locale decimal separator is comma [#1268](https://github.com/PHPOffice/PhpSpreadsheet/pull/1268)
## [1.10.0] - 2019-11-18 ## [1.10.0] - 2019-11-18

View File

@ -314,7 +314,7 @@ class Content extends WriterPart
} }
if ($size = $font->getSize()) { if ($size = $font->getSize()) {
$writer->writeAttribute('fo:font-size', sprintf('%.1fpt', $size)); $writer->writeAttribute('fo:font-size', sprintf('%.1Fpt', $size));
} }
if ($font->getUnderline() && $font->getUnderline() != Font::UNDERLINE_NONE) { if ($font->getUnderline() && $font->getUnderline() != Font::UNDERLINE_NONE) {