diff options
Diffstat (limited to 'sc/source/core/data/documen4.cxx')
-rw-r--r-- | sc/source/core/data/documen4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx index fed6c0d043f0..6a1110b6cd80 100644 --- a/sc/source/core/data/documen4.cxx +++ b/sc/source/core/data/documen4.cxx @@ -660,7 +660,7 @@ double ScDocument::RoundValueAsShown( double fVal, sal_uInt32 nFormat ) const short nPrecision; if ((nFormat % SV_COUNTRY_LANGUAGE_OFFSET) != 0) { - nPrecision = (short)pFormat->GetFormatPrecision(); + nPrecision = (short)GetFormatTable()->GetFormatPrecision( nFormat, fVal ); switch ( nType ) { case css::util::NumberFormat::PERCENT: // 0.41% == 0.0041 |