summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-27 14:52:43 +0200
committerEike Rathke <erack@redhat.com>2017-10-27 18:29:44 +0200
commit922a94f376d90c72315f86f2604924c142fca5be (patch)
tree649e71f73040fb952087ac9d066409e55d9c0ce2 /unotools
parent51a7ae749de90485f3b15a3f935f0f11d5aeff5b (diff)
Add LocaleDataWrapper::getNumDecimalSepAlt(), tdf#81671
Change-Id: Id3a16004603685ef859506c2c6d86f8ff097c1d0
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/i18n/localedatawrapper.cxx5
1 files changed, 4 insertions, 1 deletions
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?" );
}