diff options
author | Fabio Buso <dev.siroibaf@gmail.com> | 2016-02-25 09:45:03 +0100 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-02-25 16:34:16 +0000 |
commit | 36ae1972ff64c80dc053680c82032904f7bbdcb8 (patch) | |
tree | 2bc6343372618cdc3948996f5956c27bbea17c76 /xmloff | |
parent | 224ecda045f49a0e96d3117233b667de6d5c6837 (diff) |
Use rtl::math::isNan()
isnan() not found causes compilation error
System: Archlinux (Kernel Version 4.4) - GCC 5.3.0
Change-Id: Id0bb4555428896678437e8abf228f1c208f1e7a0
Reviewed-on: https://gerrit.libreoffice.org/22695
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/ximp3dscene.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/draw/ximp3dscene.cxx b/xmloff/source/draw/ximp3dscene.cxx index 5cf205f1da9b..69fb32aef63f 100644 --- a/xmloff/source/draw/ximp3dscene.cxx +++ b/xmloff/source/draw/ximp3dscene.cxx @@ -18,6 +18,7 @@ */ #include <sax/tools/converter.hxx> +#include <rtl/math.hxx> #include "ximp3dscene.hxx" #include <xmloff/xmluconv.hxx> @@ -66,7 +67,7 @@ SdXML3DLightContext::SdXML3DLightContext( { ::basegfx::B3DVector aVal; SvXMLUnitConverter::convertB3DVector(aVal, sValue); - if (!isnan(aVal.getX()) && !isnan(aVal.getY()) && !isnan(aVal.getZ())) + if (!rtl::math::isNan(aVal.getX()) && !rtl::math::isNan(aVal.getY()) && !rtl::math::isNan(aVal.getZ())) { maDirection = aVal; } |