diff options
author | Eike Rathke <erack@redhat.com> | 2018-08-31 17:27:12 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-08-31 21:47:11 +0200 |
commit | d7c16324b58c08ca6fdd231b145b77f999800d28 (patch) | |
tree | f4ec7c082260d007438b6e886bec26f2066a84f8 /tools | |
parent | d9998186d37c58751f45dd7cb97d6c72f901a346 (diff) |
Do as the comment says it should do..
stupid me..
Change-Id: I5cd067a653641bb86e0a76f86f334781dbaef018
Reviewed-on: https://gerrit.libreoffice.org/59875
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/datetime/ttime.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/datetime/ttime.cxx b/tools/source/datetime/ttime.cxx index 0adde9acfe0b..e4a6afd50048 100644 --- a/tools/source/datetime/ttime.cxx +++ b/tools/source/datetime/ttime.cxx @@ -307,7 +307,7 @@ void tools::Time::GetClock( double fTimeInDays, if (fAbsTimeInDays >= 1.0) { 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); |