diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-02-02 16:53:45 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-02-02 18:50:21 +0000 |
commit | f0bd9c2fd68c519992722faffe58e2ba8a02d4ed (patch) | |
tree | a6c45144404d46e8f256eb25d513cea7b0d3bd4e | |
parent | 04e52fd93098acb604c28a315aa3578e5010039b (diff) |
tdf#88899: sw: fix expanding of SwDocInfoField with DateTime
The lcl_TimeToDouble function produced very small numbers that round to
zero.
(regression from 9830fd36dbdb72c79703b0c61efc027fba793c5a)
Change-Id: I091da9c2a913fae0c2bbf229942db3c1bd3598f4
Reviewed-on: https://gerrit.libreoffice.org/14282
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
-rw-r--r-- | sw/source/core/fields/docufld.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx index 862db52f463d..255de7a34ad4 100644 --- a/sw/source/core/fields/docufld.cxx +++ b/sw/source/core/fields/docufld.cxx @@ -1023,7 +1023,7 @@ template<class T> static double lcl_TimeToDouble( const T& rTime ) { const double fNanoSecondsPerDay = 86400000000000.0; - return ((rTime.Hours*3600000)+(rTime.Minutes*60000)+(rTime.Seconds*1000)+(rTime.NanoSeconds)) / fNanoSecondsPerDay; + return ((rTime.Hours*3600000000000LL)+(rTime.Minutes*60000000000LL)+(rTime.Seconds*1000000000LL)+(rTime.NanoSeconds)) / fNanoSecondsPerDay; } template<class D> |