From 922a94f376d90c72315f86f2604924c142fca5be Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 27 Oct 2017 14:52:43 +0200 Subject: Add LocaleDataWrapper::getNumDecimalSepAlt(), tdf#81671 Change-Id: Id3a16004603685ef859506c2c6d86f8ff097c1d0 --- unotools/source/i18n/localedatawrapper.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'unotools') diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index d2552ffe4a82..52269c291fcc 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -355,7 +355,7 @@ std::vector< LanguageType > LocaleDataWrapper::getInstalledLanguageTypes() const OUString& LocaleDataWrapper::getOneLocaleItem( sal_Int16 nItem ) const { ::utl::ReadWriteGuard aGuard( aMutex ); - if ( nItem >= LocaleItem::COUNT ) + if ( nItem >= LocaleItem::COUNT2 ) { SAL_WARN( "unotools.i18n", "getOneLocaleItem: bounds" ); return aLocaleItem[0]; @@ -428,6 +428,9 @@ void LocaleDataWrapper::getOneLocaleItemImpl( sal_Int16 nItem ) case LocaleItem::LONG_DATE_YEAR_SEPARATOR : aLocaleItem[nItem] = aLocaleDataItem.LongDateYearSeparator; break; + case LocaleItem::DECIMAL_SEPARATOR_ALTERNATIVE : + aLocaleItem[nItem] = aLocaleDataItem.decimalSeparatorAlternative; + break; default: SAL_WARN( "unotools.i18n", "getOneLocaleItemImpl: which one?" ); } -- cgit