tools/source/datetime/ttime.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d7c16324b58c08ca6fdd231b145b77f999800d28 Author: Eike Rathke <[email protected]> AuthorDate: Fri Aug 31 17:27:12 2018 +0200 Commit: Eike Rathke <[email protected]> CommitDate: Fri Aug 31 21:47:11 2018 +0200 Do as the comment says it should do.. stupid me.. Change-Id: I5cd067a653641bb86e0a76f86f334781dbaef018 Reviewed-on: https://gerrit.libreoffice.org/59875 Reviewed-by: Eike Rathke <[email protected]> Tested-by: Jenkins 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); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
