summaryrefslogtreecommitdiffstats
path: root/reportdesign/source/filter/xml/xmlControlProperty.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign/source/filter/xml/xmlControlProperty.cxx')
-rw-r--r--reportdesign/source/filter/xml/xmlControlProperty.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/reportdesign/source/filter/xml/xmlControlProperty.cxx b/reportdesign/source/filter/xml/xmlControlProperty.cxx
index 7eae2645c985..c232a44d6019 100644
--- a/reportdesign/source/filter/xml/xmlControlProperty.cxx
+++ b/reportdesign/source/filter/xml/xmlControlProperty.cxx
@@ -19,6 +19,7 @@
#include <sal/config.h>
+#include <cmath>
#include <map>
#include "xmlControlProperty.hxx"
@@ -271,7 +272,8 @@ Any OXMLControlProperty::convertString(const css::uno::Type& _rExpectedType, con
{
case TYPE_DATE:
{
- OSL_ENSURE((static_cast<sal_uInt32>(nValue)) - nValue == 0,
+ double dummy;
+ OSL_ENSURE(std::modf(nValue, &dummy) == 0,
"OPropertyImport::convertString: a Date value with a fractional part?");
aReturn <<= implGetDate(nValue);
}