From a5442b696697e4a24566b1f5b7e5c9bc77a9fd03 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 6 Oct 2016 17:26:44 +0200 Subject: rtl::math::approxEqual(value,0.0) never yields true for value!=0.0 ... so replace with a simple value == 0.0 also in other modules than sc. Change-Id: Ie7316505a1cf9c15100114b45d300facceb03b7e Reviewed-on: https://gerrit.libreoffice.org/29575 Reviewed-by: Eike Rathke Tested-by: Jenkins --- xmloff/source/style/numehelp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmloff/source/style') diff --git a/xmloff/source/style/numehelp.cxx b/xmloff/source/style/numehelp.cxx index 84288edf105c..9c437ce6f47e 100644 --- a/xmloff/source/style/numehelp.cxx +++ b/xmloff/source/style/numehelp.cxx @@ -185,7 +185,7 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes(SvXMLExport& rXMLExp } else { - if (::rtl::math::approxEqual( rValue, 0.0 )) + if (rValue == 0.0) { rXMLExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_BOOLEAN_VALUE, XML_FALSE); } @@ -454,7 +454,7 @@ void XMLNumberFormatAttributesExportHelper::WriteAttributes( } else { - if (::rtl::math::approxEqual( rValue, 0.0 )) + if (rValue == 0.0) { pExport->AddAttribute(sAttrBooleanValue, XML_FALSE); } -- cgit