From 1f1f4232001fa23ec1a1bf67d605fda9df542eec Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 14 Apr 2024 11:25:21 +0100 Subject: Round in XmlWriter::attribute when passing a double Before, it truncated. Rounding provides a closer value. Change-Id: I213e6ae34ada2f5081cb2c8b2ef431448c712b37 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165947 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- tools/source/xml/XmlWriter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/source/xml/XmlWriter.cxx b/tools/source/xml/XmlWriter.cxx index 424b13c67b01..f49c312bd133 100644 --- a/tools/source/xml/XmlWriter.cxx +++ b/tools/source/xml/XmlWriter.cxx @@ -140,7 +140,7 @@ void XmlWriter::attribute(const char* name, std::u16string_view value) attribute(name, OUStringToOString(value, RTL_TEXTENCODING_UTF8)); } -void XmlWriter::attribute(const char* name, const sal_Int32 aNumber) +void XmlWriter::attribute(const char* name, const sal_Int64 aNumber) { attribute(name, OString::number(aNumber)); } -- cgit