summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-21 18:34:53 +0100
committerEike Rathke <erack@redhat.com>2012-11-21 18:35:53 +0100
commitb8a467b70756b83c8aeb77f385ea1e368350d370 (patch)
treeeb0c2a0f560899b634ef8598f9022f4af24f1427 /svtools
parentinclude necessary header (diff)
downloadcore-b8a467b70756b83c8aeb77f385ea1e368350d370.tar.gz
core-b8a467b70756b83c8aeb77f385ea1e368350d370.zip
obtain LanguageTag from SvtSysLocale
Change-Id: Iaee25f1d92349704eaae45e6582d31dfa718ddcb
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/table/cellvalueconversion.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/table/cellvalueconversion.cxx b/svtools/source/table/cellvalueconversion.cxx
index fba286c45f73..d47210bb9edf 100644
--- a/svtools/source/table/cellvalueconversion.cxx
+++ b/svtools/source/table/cellvalueconversion.cxx
@@ -146,7 +146,7 @@ namespace svt
ENSURE_OR_THROW( i_formatter.is(), "StandardFormatNormalizer: no formatter!" );
Reference< XNumberFormatsSupplier > const xSupplier( i_formatter->getNumberFormatsSupplier(), UNO_SET_THROW );
Reference< XNumberFormatTypes > const xTypes( xSupplier->getNumberFormats(), UNO_QUERY_THROW );
- m_nFormatKey = xTypes->getStandardFormat( i_numberFormatType, SvtSysLocale().GetLocale() );
+ m_nFormatKey = xTypes->getStandardFormat( i_numberFormatType, SvtSysLocale().GetLanguageTag().getLocale() );
}
catch( const Exception& )
{
@@ -341,7 +341,7 @@ namespace svt
// a supplier of number formats
Sequence< Any > aInitArgs(1);
- aInitArgs[0] <<= SvtSysLocale().GetLocale();
+ aInitArgs[0] <<= SvtSysLocale().GetLanguageTag().getLocale();
Reference< XNumberFormatsSupplier > const xSupplier(
io_data.aContext.createComponentWithArguments( "com.sun.star.util.NumberFormatsSupplier", aInitArgs ),