Kaydet (Commit) d7c16324 authored tarafından Eike Rathke's avatar Eike Rathke

Do as the comment says it should do..

stupid me..

Change-Id: I5cd067a653641bb86e0a76f86f334781dbaef018
Reviewed-on: https://gerrit.libreoffice.org/59875Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: Jenkins
üst d9998186
...@@ -307,7 +307,7 @@ void tools::Time::GetClock( double fTimeInDays, ...@@ -307,7 +307,7 @@ void tools::Time::GetClock( double fTimeInDays,
if (fAbsTimeInDays >= 1.0) if (fAbsTimeInDays >= 1.0)
{ {
const int nDig = static_cast<int>(ceil( log10( fAbsTimeInDays))); const int nDig = static_cast<int>(ceil( log10( fAbsTimeInDays)));
nDec = std::max( std::min( nDig, 9), 2); nDec = std::max( std::min( 10 - nDig, 9), 2);
} }
double fSeconds = rtl::math::round( fRawSeconds, nDec); double fSeconds = rtl::math::round( fRawSeconds, nDec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment