From b8a467b70756b83c8aeb77f385ea1e368350d370 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 21 Nov 2012 18:34:53 +0100 Subject: obtain LanguageTag from SvtSysLocale Change-Id: Iaee25f1d92349704eaae45e6582d31dfa718ddcb --- svtools/source/table/cellvalueconversion.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svtools') 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 ), -- cgit