From 7522abebfeeedfb2174500f26194f489b6d9291d Mon Sep 17 00:00:00 2001 From: milkyway Date: Tue, 26 Nov 2019 11:21:01 +0100 Subject: [PATCH] Prevent problems with locales setting Prevent invalid value if locale decimal separator is comma --- src/PhpSpreadsheet/Writer/Ods/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Writer/Ods/Content.php b/src/PhpSpreadsheet/Writer/Ods/Content.php index 962f8fff62..dea5100f59 100644 --- a/src/PhpSpreadsheet/Writer/Ods/Content.php +++ b/src/PhpSpreadsheet/Writer/Ods/Content.php @@ -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) {