diff options
author | Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> | 2017-03-12 14:11:36 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-03-14 23:33:50 +0000 |
commit | 60d7644a46970e6eaee882e0c5d65692da206c24 (patch) | |
tree | 07b8dcfe5a0079abf69a989b87e66d37480bb9d5 /sc | |
parent | aaa3fc0192c02389be2cde2ecd38085d0c304c44 (diff) |
tdf#106253 Precision as shown for thousand dividor
Info().nThousand contains number of thousands dividors
after which digits are not displayed, i.e. 12345 is displayed
as 12 with format 0, (in en_US)
Change-Id: Ifa5540f2efd8ab006a07eade53f7aa0d31a19eac
Reviewed-on: https://gerrit.libreoffice.org/35097
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/documen4.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx index 6bb280b20d91..1cdc777fcd91 100644 --- a/sc/source/core/data/documen4.cxx +++ b/sc/source/core/data/documen4.cxx @@ -692,6 +692,12 @@ double ScDocument::RoundValueAsShown( double fVal, sal_uInt32 nFormat ) const { return pFormat->GetRoundFractionValue( fVal ); } + case css::util::NumberFormat::NUMBER: + case css::util::NumberFormat::CURRENCY: + { // tdf#106253 Thousands dividors for format "0," + nPrecision -= pFormat->GetThousandDivisorPrecision( nIdx ); + break; + } } } else |