diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-04-14 11:25:21 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-04-14 15:13:10 +0200 |
commit | 1f1f4232001fa23ec1a1bf67d605fda9df542eec (patch) | |
tree | 7ced650d6b784829fb3cb957d8b71443b2ed7ae1 /tools | |
parent | 7f2283c2986ff94766cc1d2c076fb34a2c88a31a (diff) |
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/xml/XmlWriter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |