summaryrefslogtreecommitdiff
path: root/sd/source/filter/eppt/eppt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/filter/eppt/eppt.cxx')
-rw-r--r--sd/source/filter/eppt/eppt.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx
index 7bd42c74802c..dc0593837b2a 100644
--- a/sd/source/filter/eppt/eppt.cxx
+++ b/sd/source/filter/eppt/eppt.cxx
@@ -53,6 +53,7 @@
#include <sfx2/docinf.hxx>
#include <oox/export/utils.hxx>
#include <oox/ole/olehelper.hxx>
+#include <rtl/math.hxx>
using namespace com::sun::star;
using namespace ::com::sun::star::uno;
@@ -1124,7 +1125,7 @@ void ImplExportComments( uno::Reference< drawing::XDrawPage > xPage, SvMemoryStr
if ( !sInitials.isEmpty() )
PPTWriter::WriteCString( rBinaryTagData10Atom, sInitials, 2 );
- sal_Int16 nMilliSeconds = aDateTime.HundredthSeconds * 10;
+ sal_Int16 nMilliSeconds = static_cast<sal_Int16>(::rtl::math::round(static_cast<double>(aDateTime.NanoSeconds) / 1000000000.0));
EscherExAtom aCommentAtom10( rBinaryTagData10Atom, EPP_CommentAtom10 );
rBinaryTagData10Atom << nIndex++
<< aDateTime.Year