[Libreoffice-commits] .: sc/source
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Thu Apr 7 06:57:11 PDT 2011
sc/source/core/data/globalx.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit edeefe8e4d1acf2ddb03ad61ea9184bb4a844633
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date: Thu Apr 7 13:33:47 2011 +0200
i#20348: made the ordinal suffixe autocorrection internationalized
diff --git a/sc/source/core/data/globalx.cxx b/sc/source/core/data/globalx.cxx
index cce88a1..0a6df7c 100644
--- a/sc/source/core/data/globalx.cxx
+++ b/sc/source/core/data/globalx.cxx
@@ -158,8 +158,12 @@ String ScGlobal::GetOrdinalSuffix( sal_Int32 nNumber)
{
try
{
- return xOrdinalSuffix->getOrdinalSuffix( nNumber,
+ uno::Sequence< rtl::OUString > aSuffixes = xOrdinalSuffix->getOrdinalSuffix( nNumber,
ScGlobal::pLocaleData->getLocale());
+ if ( aSuffixes.getLength() > 0 )
+ return aSuffixes[0];
+ else
+ return String();
}
catch ( Exception& )
{
More information about the Libreoffice-commits
mailing list