Round in XmlWriter::attribute when passing a double
commit1f1f4232001fa23ec1a1bf67d605fda9df542eec
authorMike Kaganski <mike.kaganski@collabora.com>
Sun, 14 Apr 2024 10:25:21 +0000 (14 11:25 +0100)
committerMike Kaganski <mike.kaganski@collabora.com>
Sun, 14 Apr 2024 13:13:10 +0000 (14 15:13 +0200)
tree7ced650d6b784829fb3cb957d8b71443b2ed7ae1
parent7f2283c2986ff94766cc1d2c076fb34a2c88a31a
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>
emfio/qa/cppunit/emf/EmfImportTest.cxx
include/tools/XmlWriter.hxx
svgio/qa/cppunit/SvgImportTest.cxx
svx/qa/unit/sdr.cxx
svx/qa/unit/svdraw.cxx
tools/source/xml/XmlWriter.cxx