summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-12-14 11:13:52 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-12-14 11:15:40 +0100
commitaf7b4eca3db99a63202df285a7df7402e523ff54 (patch)
treea5f2a163b04d05a6c5cf5224b100f7b816e7901f
parent3c5dd9812b1028188b186f070874bdb6ecdcd4ba (diff)
silence cppcheck
Change-Id: Iea597af9335aa6314a9465ec61cbaae9867a4cf4
-rw-r--r--oox/source/export/chartexport.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 0c0620820968..17a86ff630e8 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -85,6 +85,8 @@
#include "ColorPropertySet.hxx"
#include <set>
+#include <rtl/math.hxx>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::drawing;
@@ -1819,7 +1821,7 @@ void ChartExport::exportSeriesValues( const Reference< chart2::data::XDataSequen
FSEND );
pFS->startElement( FSNS( XML_c, XML_v ),
FSEND );
- if (aValues[i] == aValues[i])
+ if (!rtl::math::isNan(aValues[i]))
pFS->write( aValues[i] );
pFS->endElement( FSNS( XML_c, XML_v ) );
pFS->endElement( FSNS( XML_c, XML_pt ) );