Skip to content

Commit

Permalink
ODS writer prevent invalid numeric value if locale decimal separator …
Browse files Browse the repository at this point in the history
…is comma

Closes #1268
  • Loading branch information
milkyway-git authored and PowerKiKi committed Nov 30, 2019
1 parent ad37da8 commit d61855e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
- 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)
- 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

Expand Down
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Writer/Ods/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ private function writeXfStyles(XMLWriter $writer, Spreadsheet $spreadsheet)
}

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) {
Expand Down

0 comments on commit d61855e

Please sign in to comment.