From d7c16324b58c08ca6fdd231b145b77f999800d28 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 31 Aug 2018 17:27:12 +0200 Subject: Do as the comment says it should do.. stupid me.. Change-Id: I5cd067a653641bb86e0a76f86f334781dbaef018 Reviewed-on: https://gerrit.libreoffice.org/59875 Reviewed-by: Eike Rathke Tested-by: Jenkins --- tools/source/datetime/ttime.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(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); -- cgit